exception when using form tag within a user control

D

Daniel

Hi all,

i would like to load a usercontrol dynamically in a web page.
this uc contains some buttons.
because the page itself also contains button elements, the error
"A page can have only one server-side Form tag. "
is raised.
when i dont use a formn within the uc anothr exception:
"'Button' must be placed inside a form tag with runat=server."
is raised
is there a way to load the user control in the form of the page so that
i don't need another form for the buttons ion the uc?
or any other way to use buttons within a uc?
thanks in advance for any help.

daniel
 

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

Members online

Forum statistics

Threads
474,266
Messages
2,571,077
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top