473,386 Members | 1,602 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Duplicate FORM tag error?

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
Nov 19 '05 #1
7 1321
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


"Brett" <no@spam.net> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
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

Nov 19 '05 #2
When I view source on the aspx page, I see only one FORM tag with its
closing tag.

Brett

"Steve Lutz" <sl***@nospam.comcast.net> wrote in message
news:Ok**************@TK2MSFTNGP12.phx.gbl...
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


"Brett" <no@spam.net> wrote in message
news:eA**************@TK2MSFTNGP09.phx.gbl...
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


Nov 19 '05 #3
Did you call Render() in your program? That's another common case of the
error.

"Brett" <no@spam.net> ¼¶¼g©ó¶l¥ó·s»D:eA**************@TK2MSFTNGP09.phx.g bl...
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

Nov 19 '05 #4
No. Where and how is Render() used?

Thanks,
Brett

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
Did you call Render() in your program? That's another common case of the
error.

"Brett" <no@spam.net>
¼¶¼g©ó¶l¥ó·s»D:eA**************@TK2MSFTNGP09.phx.g bl...
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


Nov 19 '05 #5
Are u inheriting any base page??

--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------
"Brett" wrote:
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

Nov 19 '05 #6
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...

"Brett" <no@spam.net> ¼¶¼g©ó¶l¥ó·s»D:%2****************@TK2MSFTNGP12.phx .gbl...
No. Where and how is Render() used?

Thanks,
Brett

"Lau Lei Cheong" <le****@yehoo.com.hk> wrote in message
news:eM**************@TK2MSFTNGP10.phx.gbl...
Did you call Render() in your program? That's another common case of the
error.

"Brett" <no@spam.net> ¼¶¼g©ó¶l¥ó·s»D:eA**************@TK2MSFTNGP09.phx.g bl...
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



Nov 19 '05 #7
The only inherits keyword in use is
Inherits System.Web.UI.Page

Any other suggestions?

Thanks,
Brett

"vinay" <vi***@discussions.microsoft.com> wrote in message
news:C0**********************************@microsof t.com...
Are u inheriting any base page??

--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------
"Brett" wrote:
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


Nov 19 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: monika | last post by:
hi... when I try to insert a duplicate record I get the primary key error. which is good. but I want to generate a user friendly error ... telling the user that u have got this error because u r...
3
by: David | last post by:
Hi, I have a page which lets me select a user from a list by checking a check box next to the specific user and pressing a submit button. The Check box holds the value = 'UserID'. A new form...
8
by: Mark | last post by:
When my form goes to a new record, I have a procedure that copies the last record added to the form's underlying table into the form. The intent is that a series of new records may have the same...
3
by: Nhmiller | last post by:
I searched here for an answer. I am entering records into a database, and it would save a lot of time if I could duplicate a record that is very similar to the new one I am about to enter, then...
2
by: stranger | last post by:
My database is set up so people can input parts orders. Sometimes they order the same parts on a monthly basis. I want to be able to duplicate past parts orders and have it pasted in with a new...
4
by: afr0ninja | last post by:
Hello! I'm still rather new to using code in access. I've come across a problem that I'm having difficulty troubleshooting. Any assistance would be greatly appreciated! I've set up a form...
0
by: claus | last post by:
Hi, I am not a programmer but tries anyway to program a feature in a form where I am able to copy entries for the form and a subform. I have tried follow the guide here...
9
by: Tom_F | last post by:
To comp.databases.ms-access -- I just discovered, to my more than mild dismay, that some tables in my Microsoft Access 2003 database have duplicate numbers in the "AutoNumber" field. (Field...
1
by: bruce24444 | last post by:
I am designing a database to use a work to assign files to certain people. Form includes Date textbox, File Number textbox, File Type combobox and Assigned To combobox. The form is working fine and...
1
by: xraive | last post by:
I have a problem with this. Currently I am trying Allen's code and i am not successful. Current Design Table1 (Main Form) TravelID (PK) ApprovedBY EntreredBy BudgetCode ExpenseCode
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.