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

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

My login.aspx page uses a MasterPage and is implemented as a Content page. However, I keep getting the error "A page can have only one server-side Form tag." when I run it. Yet there is not FORM tag in my Content page.

One thing to note is that my login.aspx page was originally created in VS.NET 2003 and I'm now running it on VS.NET 2005 Beta, it was converted. All my other pages using the MasterPage work fine. I have a typical login page with two text boxes and a button.

Help !!

Ray

Nov 18 '05 #1
1 8108
Tee
For page that uses MasterPage, itself must not content any server controls
code like <form runat="server">, I think VS.NET 2005 Beta didn't help you
remove those code after you change a page to uses MasterPage, so you need to
manually edit the page source to look something like this.

<%@ Page Language="VB" MasterPageFile="~/MasterPage.master"
AutoEventWireup="false" CompileWith="Default1.aspx.vb" title="Untitled Page"
%>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1"
Runat="server">

Whatever content for the page ...

</asp:Content>

I am not sure why you get the error message because I didn't see your
source, but I guess you have a <form runat="server"> in your login.aspx,
which is what you need to remove and only keep the code in between the
<asp:content> & </asp:content>.
HTH,
Tee

"Ray Cacciatore" <Ra***********@discussions.microsoft.com> wrote in message
news:03**********************************@microsof t.com...
My login.aspx page uses a MasterPage and is implemented as a Content page. However, I keep getting the error "A page can have only one server-side Form
tag." when I run it. Yet there is not FORM tag in my Content page.
One thing to note is that my login.aspx page was originally created in VS.NET 2003 and I'm now running it on VS.NET 2005 Beta, it was converted.
All my other pages using the MasterPage work fine. I have a typical login
page with two text boxes and a button.
Help !!

Ray

Nov 18 '05 #2

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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
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,...
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...

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.