473,414 Members | 1,948 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,414 software developers and data experts.

A page can have only one server-side Form tag

Tom
Hi,

I have a web page which has server side include for top,
left, main and bottom.aspx pages.

In the left.aspx, there is a login web control which has a
pair of form tags.

In the main page, there is a registration form which has a
pair of form tags.

So, there are 2 pairs of form tags in one index.aspx page.

I cannot run it and it prompted the error of "A page can
have only one server-side Form tag".

I removed the </form> for left.aspx and <form> for
main.aspx. It cannot run also as it said the respective
form tag was missed.

So, how can I handle a web form which has 2 forms?

Thanks

Tom
Nov 18 '05 #1
3 19069
The most common replacement for old fashioned include files are web user
controls.
They basically are like object oriented include files on steroids.
They'll solve your form problem along with a bunch of other problems you
never knew you had.

Here's more info:
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ercontrols.asp
http://msdn.microsoft.com/library/de...ebControls.asp

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Tom" <ke*****@yahoo.com> wrote in message
news:7d****************************@phx.gbl...
Hi,

I have a web page which has server side include for top,
left, main and bottom.aspx pages.

In the left.aspx, there is a login web control which has a
pair of form tags.

In the main page, there is a registration form which has a
pair of form tags.

So, there are 2 pairs of form tags in one index.aspx page.

I cannot run it and it prompted the error of "A page can
have only one server-side Form tag".

I removed the </form> for left.aspx and <form> for
main.aspx. It cannot run also as it said the respective
form tag was missed.

So, how can I handle a web form which has 2 forms?

Thanks

Tom

Nov 18 '05 #2
Tom
I read the web user control online tutorial. it said there
are no html, form tags in ascx files.

so, i removed all the form tags insides the left and main
ascx files. but, the error said textbox must need form
tags.

how can i fix this problem?
Nov 18 '05 #3
You must have exactly one server form tag (and of course the matching
closing tag.)
Your user controls should exist within this form. In other words your
control's declaration tag should be between the opening and closing form
tags.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
Hire top-notch developers at http://www.able-consulting.com

"Tom" <ke*****@yahoo.com> wrote in message
news:0c****************************@phx.gbl...
I read the web user control online tutorial. it said there
are no html, form tags in ascx files.

so, i removed all the form tags insides the left and main
ascx files. but, the error said textbox must need form
tags.

how can i fix this problem?

Nov 18 '05 #4

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

Similar topics

6
by: Paul Robinson | last post by:
I am developing a website in ASP that connects to a Sybase database. However, when I try to open a connection to the database the page will not load. The script does not timeout, nor the...
13
by: teenzbutler | last post by:
I have a 10mb ASP file, which will not load in IE 6.0. I get an HTTP 500 error. When I convert the 10mb file to HTML, it loads fine. Is there a limitation on file size? If so, is there a tag I...
6
by: Graeme Wood | last post by:
I have an ASP page hosted on a windows 2003 server. This page was working fine until Saturday. Now, the server doesn't serve it and gives a 404 page not found error. The file DEFINITELY exists...
6
by: John Lau | last post by:
Hi, I am looking at the MS KB Article 306355: HOW TO: Create Custom Error Reporting Pages in ASP.NET by Using Visual C# .NET This article describes how to redirect errors to a custom html...
0
by: Goober at christianDOTnet | last post by:
I'm wanting to fix the following on a web page without really re-inventing anything. What I have is a vb web page with a radiobuttonlist where I can pick Current or History year. Underneath...
4
by: tshad | last post by:
I have a logon page that is getting the previous page in its return URL ("logon.aspx?returnURL=A.aspx") where A.aspx is the page that called B.aspx. It should have B.aspx. I am calling B.aspx...
11
by: Jeff | last post by:
Hi - I'm trying to get my ASP.NET pages to work the same way on my development machine (running from the VS.NET IDE) and on a remote (3rd-party) server. The only way I've been able to come up...
82
by: Eric Lindsay | last post by:
I have been trying to get a better understanding of simple HTML, but I am finding conflicting information is very common. Not only that, even in what seemed elementary and without any possibility...
8
by: sgottenyc | last post by:
Hello, If you could assist me with the following situation, I would be very grateful. In my current position, we have to use a non-traditional server setup to serve PHP-generated web pages....
2
by: pankajsingh5k | last post by:
Dear All, Please help me... I had read an article to lazy load a tab in a tabcontainer using an update panel on http://mattberseth.com/blog/2007/07/how_to_lazyload_tabpanels_with.html ...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.