I have a page 'Registration.aspx' . Left Menu contains username,password field and 'Login' button(submit button). In the content area
i have some textboxes(Use to get the information from the user) and i have 'Register' button(submit button).
When i click the 'Login' button. It takes to post registration form.
How to use two submit button in one web form?
Thanks.
How to use two submit button in one web form?
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Blocked AccountRank #403 · 6.2K reputationPosted Jul 21, 2011, 2:02 AM EDT
Check the events of both button, i think click events are same for both buttons.
Jiteendra SampathiraoRank #585 · 4.1K reputationPosted Jul 21, 2011, 2:54 AM EDT
use two button click events.......and write the functionality....
protected void button1_Click(object sender, eventargs e)
{
//your first button functionality
}
protected void button2_Click(object sender, eventargs e)
{
//your second button functionality
}
hope it help you.......