asp:panel, Submit Button, Database

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
 
M

Michael Evanchik

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top