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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multiple Forms on a Page

Status
Not open for further replies.

gi11ies

Programmer
Mar 26, 2002
52
I am trying to work out how to get two froms on the one page. I am making up a shopping cart web site, and want to have a search facility on each page (textbox for string and search button), but when it comes to the page with the items on it, the form I use for adding an item to the cart (text box for quantity and add to cart button) it will not let me have the two forms.

Any tips on how to have the two forms on one page?

Gillies
 
You can only have 1 <form runat="server"> tag on any one page (although you can include multiple form tags if they do not have the runat="server" attribute)

Ideally, you would create a user control for the "Search Function" and remove it's form tags.



--------------------------------------------------------------------------------------------------------------------------------------------

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