Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Making one form in severals form
Message
De
20/09/2006 09:54:37
Keith Payne
Technical Marketing Solutions
Floride, États-Unis
 
 
À
20/09/2006 09:34:29
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01155501
Message ID:
01155519
Vues:
22
>Hello at alls;
>
>I have a web form with 100 fields; this ones are divided in sectiones; nevertheless even when the user dont see all the fields these ones load when the form load and with JavaScript Funtion, some section is enable while other ones is disable, like tabs.
>
>My job is separeted this form in 4 form and use each one when be neccesary.
>
>Now the trouble is, How do I do to maintain the form values of the previos form that has been used by the user and at final step of the process ALL the information be store in the data bases.
>
>TIA

Andrews,

Instead of immediately moving to the next form when the user clicks the 'next' button (or whatever it is that is clicked to move from form 1 to form 2), postback to the original form where you can assign the input field values to the sessionstate or viewstate in the form load. After storing the field values, use server.transfer to load form 2.

Or, you could convert each of the 4 forms into user controls and run the wizard from a single container page. To load them individually when the user clicks 'next', place a marker control that you can identify by ID in the container page. In the form load or prerender, find the index of the marker control in the controls collection by looping through all of the controls in the form. Insert the appropriate user control into the form's controls collection at that index. Make sure that a @Register directive for all each controls is in the HTML of the container page.+
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform