Any way to include an HTML form with server-side controls?

P

paul.hester

Hi all,

I have a page with a mutli view control where one of the views needs to
contain a separate HTML get form with a submit button that goes to
another page. In ASP this was no problem - there was no container form
and it just went to the target page. In ASP .NET however, there is a
container form and having an embedded form breaks the page. Adding
another server-side form just gets the "A page can have only one
server-side Form tag" runtime error.

I need to have some server-side logic in the HTML form to determine
whether it is displayed or not. I can use the same form and catch the
server-side Click event for the other button, but that relies on
javascript to wire up a default button for the main form.

How can I achive this in .NET *without using javascript*?

Thanks,

Paul
 

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
473,995
Messages
2,570,236
Members
46,822
Latest member
israfaceZa

Latest Threads

Top