Web Form Tab control

evaleah

Well-known member
Joined
May 14, 2003
Messages
55
New day... new problem....

I am looking for a way to produce tab-control like behaviour on several web pages. In other words: I want a user to be able to make changes on one page, go to another that is related, make changes on that one, go back to the first, persist the changes on the first, but not commit the whole thing until the user clicks a submit button, then save the entire kit and kaboodle from all the tabs.

I was thinking to use a dataset and share that across the multiple pages. Is this the best way to do this? I would love any ideas and suggestions.

Thanks,
Eva
 
ASP.NETs viewstate or session features can easily provide for this type of behavior. When a tab is clicked the current tabs information is posted back the server, saved in the controls viewstate and later collected and inserted into a database or other backend.
 
Great. That is exactly what I was thinking I would do.

Now, I have a big favor to ask.... Can you point me to a simple example of this being done? I am getting myself all confused about viewstate and session and how to retrieve data, etc....

Thank you so much!
 
I also think of this question (tab control), but do you think it is good everytime postback to server when I switch from one page to another?

How about if I use Client site script to do something similar? In client site we can do whatever without postback to server until we save the record... dont you think is better?
 
You could provide that level of client-side functionality, however youd also have to support posting back to the server, since some browsers either do not support scripting or have it disabled. I wouldnt recommend an implementation such as this however, in situations where the user will be entering data.
 
Back
Top