Click here to Skip to main content
15,030,318 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
I have a form containing three pages. first two pages have next button which navigate to the next pages ....
and the third page has the submit button.
after clicking the submit button, all the information written in all the three pages will be submitted to the server and be saved in database ....
so .... the basic problem is one submit button in one page save the info of three pages.
what is the coed behind logic for this ??
using viewstate ?? or something else ??
if possible, provide a code
thank u
Updated 3-May-13 19:42pm

1 solution

You are clicking on just one button, right? If this is a submit button, it should be in some form, right? It will send an HTTP post only for the parent form, right? So, you need to put all three forms together. Isn't this logical?

This logical HTTP structure has nothing to do with visual presentation of forms. Visually, they can look as three separate forms. It will look and work exactly as you want.

Optionally, you may work without forms at all; then you would need to use Ajax.


This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900