|
The GridView control can be made to automatically generate it's columns from the contents of the data source. AutoGenerateColumns="true" or somethign like that
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Hi,
Create an GridVew say it's ID (grdEmployee) with 5 columns at design time and make the last three ItemTemplates visible false. and set AutoGenerateColumns property to false only.
And In Page_Load event based on ur req. display ur columns by using following syntax:
if u need to display 3rd ItemTemplate use the following code snippet:
grdEmployee.columns(2).Visible = true
if u need to display 4th ItemTemplate use the following code snippet:
grdEmployee.columns(3).Visible = true
if u need to display 5th ItemTemplate use the following code snippet:
grdEmployee.columns(4).Visible = true
|
|
|
|
|
if we have three tables in our database in the applicaion n through our web page we want to update the information in the databse how we can do it. secondly design a login page that takes username and password from a login table in the database that has both username and password stored in it(without encrypted for easy purpose) without using inbuilt login controls(only text boxes with password mode)..
|
|
|
|
|
Have you tried searching? Point #1 is such basic concept you can find it just about any ASP.NET book and a few thousand articles. Point# 2 is also very easy, there are plenty of examples. Start with Forms Authentication.
only two letters away from being an asset
|
|
|
|
|
Google doesn't work where you live ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how to make a window apll in which user enters the data in textbox only in teh format <name>=<value> pair all other formats are ignored. then he clicks the add button to add the text in the listbox. then he can sort the list box ascending or descending and can delete the selected <name>=<value> pair from the listbox using delete button.
|
|
|
|
|
As this is the ASP.NET forum, the most important thing you need to know is that you can't write a windows app with ASP.NET.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
how to web scrape only the cabinet ministers information from www.premier.gov.on.ca/team/default.asp along with their head shots on our web page dynamically at run time in asp.net2.0 using c#
|
|
|
|
|
|
hi this is khurram yousuf i want a software of asp or asp.net if any one have kindly send me email khurram.eng@gmail.com
|
|
|
|
|
You're thinking of rentacoder. This site is for people to ask questions about applications they are writing themselves.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Christian Graus wrote: You're thinking of rentacoder. This site is for people to ask questions about applications they are writing themselves.
You forgot to add "and for morons who seem incapable of stringing two programming keywords together".
|
|
|
|
|
Well, do we REALLY want to encourage that ? :P
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Most frustrating. The format of the website cannot be changed:
I have 5 web pages each with a form. These page forms have content the user can edit & redit.On the top of each page is a menu bar affording the user to toggle back and forth to any of the 5 pages viewing the respective content. Now say the user toggles to page 2, makes changes to the content, via a RadEditor, toggles to page 5, then retoggles to page 2 to see the changes he just made.
Here's the delema: During these edits/redits, the revised content CANNOT be posted as an update to the database. Only AFTER the user is satisfied with all the edits made, does he click button 6 for "Update All My Changes".
So in short, how can I have several editable web pages of form elements that allow the user to see the changes they made, even after clicking off and then back to that form without using a database update or items mentioned above. Remember, They will not let me hit the database until aff the edits on the 5 web page forms are complete. Thanks.
Update:
I have reevaluated the entire process.
I've decided to utilize the file stream object and have them edit their entire page.
Now, I have to figure out how to reiterate thru these modified forms to place the data into the db.
modified on Tuesday, February 26, 2008 4:37 PM
|
|
|
|
|
When you change page in the menu, do you actually have to load a new page, or can't you just hide one div and show another? That way you could have all the editable data on a single page, and there is no problem in keeping the data until it should be saved.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
As I explained, I must change the page. I cannot have the elements all on one page.
|
|
|
|
|
But, why not ? Why is it that you want to solve this problem without using any of the methods that are available to solve it ?
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
crystal9154 wrote: As I explained, I must change the page. I cannot have the elements all on one page.
No, you haven't explained that. Why do you think that you can't have the elements on the same page?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
I've been telling him to do that for days. He insists in this latest post that he cannot.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Bind the controls to a DataTable, or DataSet, that is stored as a session variable for use between pages. When editing is complete call Update. A DataSet is after all an in-memory cache of data. i.e. not connected to a database.
only two letters away from being an asset
|
|
|
|
|
He says there's 'too much data' to store in the session. He's basically asked the same thing for days, and in this post, lists all the reasons he believes he cannot use any of the solutions he's been offered ( which, as far as I can see, is all the realistic possible solutions ). As the data is 'too big', I suspect his web server is a Commodore 64.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
I thought the question sounded familiar, I didn't recognize the username though.
Ask a question enough times and you're bound to get an answer you like
only two letters away from being an asset
|
|
|
|
|
I think a lot of the sort of people who ask these sort of questions over and over, have several accounts.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Your too sarcastic for me Christian, don't think I need your input any further
|
|
|
|
|
I doubt he wants to give you any more input.
You claim the data is "too big". How can it be too big, if its small enough to be sent to a client and back over the internet?
We don't think you have thought your constraints through properly. How much data per page? How many concurrent users?
Why separate pages?
It sounds like your problems are only caused by poor design and imaginary constraints.
|
|
|
|