Duplicate FORM tag error?

B

Brett

I am doing a postback to the same page. The page has only one FORM tag but
I get this error after the submit button is pressed:

A page can have only one server-side Form tag.

If there is only one FORM tag, why is the above error being thrown?

Thanks,
Brett
 
S

Steve Lutz

Are you included any other customer controls that may be adding an
additional FORM?

If you view the page source, are you positive there is only one FORM
(runat=server) tag?

Steve
 
B

Brett

When I view source on the aspx page, I see only one FORM tag with its
closing tag.

Brett
 
L

Lau Lei Cheong

Did you call Render() in your program? That's another common case of the
error.
 
L

Lau Lei Cheong

Render() is explicitlycalled by .NET codes when they need the exact HTML
code being transferred to the browser.

It's a useful technique for cases, for example, when you want to e-mail the
user the report as the user read it...
 
B

Brett

The only inherits keyword in use is
Inherits System.Web.UI.Page

Any other suggestions?

Thanks,
Brett
 

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

No members online now.

Forum statistics

Threads
474,431
Messages
2,571,677
Members
48,796
Latest member
Greg L.

Latest Threads

Top