S
Steve C. Orr [MVP, MCSD]
User controls should generally not contain Form tags, or else it causes
problems like you're describing.
Other details:
You can only have one visible server form on the page at a time.
So you could have more than one server form as long as you only show one at
a time.
Or you can have more than one form visible on your page at a time, but only
one of them can be a server form (i.e. with the runat=server attribute.)
Server forms only support posting back to themselves (not to other pages.)
It's my understanding that this will all become more flexible in .NET
version 2.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
of my pages and want to include a search text box. Unfortunately several of
the pages that this user control appears on also contains a server form tag.
problems like you're describing.
Other details:
You can only have one visible server form on the page at a time.
So you could have more than one server form as long as you only show one at
a time.
Or you can have more than one form visible on your page at a time, but only
one of them can be a server form (i.e. with the runat=server attribute.)
Server forms only support posting back to themselves (not to other pages.)
It's my understanding that this will all become more flexible in .NET
version 2.
--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com
What are the other options. I have a user control on part of the majoritytmeister said:I understand that a single aspx page can only contain on server form tag.
of my pages and want to include a search text box. Unfortunately several of
the pages that this user control appears on also contains a server form tag.