Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Submit form from code behind

Status
Not open for further replies.

jgd123456

Programmer
Nov 3, 2006
19
GB
Hi, i was wondering how to submit a form from the code behind file. If i use an ObjectDataSource and a FormView i can simply do objDocument.Update();. But when i don't have a FormView, simply a button click event i don't know what to do.

I know someone will come back and ask why i want this well here goes. I have a have 3 steps to my form (no wizard control used). After each step i wish to submit back to the server and update the appropriate information. I have used the BulletedListControl to display the steps at the top. I have an event handler for the click event of this control and here i need to submit the form and redirect to the appropriate step.

Appreciate if someone could help. Thanks
 
You can't submit a form from the code behind file as a submitted form must come from the client and be sent to the server. If you want to submit a form to the server place a Button or a HTML input control on the form and have the user click it.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top