User Controls and <form runat="server">

  • Thread starter Thread starter Hai Nguyen
  • Start date Start date
H

Hai Nguyen

Hi all

I have a several User Controls which require this tag: "<form
runat="server">. I tried to have all of these user user controls on the same
web page. It kept giving me an error :""A page can have only one server-side
Form tag"

Is there a way to go around this?


Thanks
 
Hai,

Your user control should not have a form tag which relies on being run
on the server. Rather, you should depend on the fact that your control will
be declared in a container, which ultimately is contained in a form tag run
on the server.

Hope this helps.
 
Back
Top