Click here to Skip to main content
15,888,113 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a form. Half of the form is on page1.aspx and half on page2.aspx also submit button is on page2.aspx. All i want to do is that when the user click on submit button on page2 the value from page1 and page2 store in a table in database.
i m using model how this code can be modified
protected void btnNext_Click(object sender, EventArgs e)
{
Userinfo objuser = new Userinfo();
objuser.FirstName = FirstName.Text.Trim();
objuser.LastName = LastName.Text.Trim();
objuser.Password = Password.Text.Trim();
objuser.Email = Email.Text.Trim();
objuser.Phone = Convert.ToInt32(Phone.Text);
objuser.Role = ddlrole.SelectedItem.Text.Trim();
Adodata objado = new Adodata();
objado.userdetails(objuser);

Response.Redirect("AddInfo.aspx");
}
}
Posted
Updated 16-Jan-13 19:28pm
v2

U should use session .store data of first form in session and merge this data with second form then on click of button pass this data to database .
 
Share this answer
 
I think you can use Wizards In ASP.NET

http://www.c-sharpcorner.com/uploadfile/raj1979/wizard-control-in-Asp-Net-3-5/[^]

Refer This Link.
 
Share this answer
 

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