asp:panel, Submit Button, Database

  • Thread starter Thread starter Harry
  • Start date Start date
H

Harry

Hi,

Slight problem in asp.net. (c#)

I have a asp:panel page set up, with two different panels both of
which contain a form.
On the second page the user presses submit and the form details are
automatically entered into a SQL database.

Problem is, when the user presses the next button on the first panel,
the details of that form are inserted into a databse record. Then when
the submit button is pressed on the second page, that form is
submitted to a NEW database record!

q: how to I tell the button on the first panel, not to submit to the
database and just go to the next panel ?

Any help appriciated as always!

H
 
Fist off asp.net can only have 1 form per page and am surprised it
doenst give you an error telling you so. As for your problem i dont
understand how your form is submitting on your "next" button. Make
sure its not a type=submit button of course. Posting your code would
help.

Mike
 
Back
Top