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

of type 'TextBox' must be placed inside a form tag with runat=serv

Hi there peeps,

I am having a problem have just started to use usercontrols, and I am
hitting a problem.

I get the error message above, now each control has a table, and 1
asp:textbox control. Now when I first got this error I just put the form
tags around the table in the control with the runat=server set. But however
I get the following error if i do that too the other controls.

This is the code for the main page

<%@ Page Language="vb" AutoEventWireup="false"
Codebehind="Main_Sex_Toy_Vibrator_Rabbit.aspx.vb"
Inherits="AGS_ASPX.Main_Sex_Toy_Vibrator_Rabbit"%>
<%@ Register TagPrefix="uc1" TagName="HEADER" Src="controls/HEADER.ascx" %>
<%@ Register TagPrefix="uc1" TagName="DVD_VIDEO_EXCHANGE"
Src="controls/DVD_VIDEO_EXCHANGE.ascx" %>
<%@ Register TagPrefix="uc1" TagName="Footer" Src="Footer.ascx" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<title>Main_Sex_Toy_Vibrator_Rabbit</title>
<meta name="GENERATOR" content="Microsoft Visual Studio .NET 7.1">
<meta name="CODE_LANGUAGE" content="Visual Basic .NET 7.1">
<meta name="vs_defaultClientScript" content="JavaScript">
<meta name="vs_targetSchema"
content="http://schemas.microsoft.com/intellisense/ie5">
</HEAD>
<body MS_POSITIONING="GridLayout">
<uc1:HEADER id="HEADER1" runat="server"></uc1:HEADER>
<uc1:DVD_VIDEO_EXCHANGE id="DVD_VIDEO_EXCHANGE1"
runat="server"></uc1:DVD_VIDEO_EXCHANGE>
<uc1:Footer id="Footer1" runat="server"></uc1:Footer>
</body>
</HTML>
"A page can have only one server-side Form tag."

Ok, so here is my question if I can have only one form tag, how can I have
asp: type controls on my user controls and use them, or am I just being plain
stoopid, and am doing something so simple as to be painful?

I always assumed that usercontrols would be handled by the calling pages
runat statement?


Nov 19 '05 #1
2 1806
Alixx,

You will have the place the text box in a form tag, like this:

<form id="Form1" method="post" runat="server">
<uc1:HEADER id="HEADER1" runat="server"></uc1:HEADER>
<uc1:DVD_VIDEO_EXCHANGE id="DVD_VIDEO_EXCHANGE1"
runat="server"></uc1:DVD_VIDEO_EXCHANGE>
</form>

Succes!
Nov 19 '05 #2
Rik,

Thankyou for your response, that fixed the problem, I had sort of answered
my own question; when I said "I always assumed that usercontrols would be
handled by the calling pages
runat statement?
" which it does except ! I hadn't made sure that my page was handling that
........ must remember to check the obvious places first. However, I have
found some interesting things out whilst researching so it wasn't a complete
waste of time.

All I can say is that your help has been very much appreciated.

Alixx

"Rik Moed" wrote:
Alixx,

You will have the place the text box in a form tag, like this:

<form id="Form1" method="post" runat="server">
<uc1:HEADER id="HEADER1" runat="server"></uc1:HEADER>
<uc1:DVD_VIDEO_EXCHANGE id="DVD_VIDEO_EXCHANGE1"
runat="server"></uc1:DVD_VIDEO_EXCHANGE>
</form>

Succes!

Nov 19 '05 #3

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

Similar topics

1
by: Chris | last post by:
I have seen the posts on various places on the internet about .NET framework mismatch issues and I don't think that is my problem. ; ) When I execute the following C++.NET code: String...
4
by: Terry | last post by:
Hello, I am trying to get a response for an .aspx page in my current project (same virtual directory) by using WebRequest.GetResponse but I keep getting a exception with "500 Internal server...
1
by: Roy | last post by:
Hi, I have a problem that I have been working with for a while. I need to be able from server side (asp.net) to detect that the file i'm streaming down to the client is saved...
10
by: Perry van Kuppeveld | last post by:
Hi, I have a problem with formatting a table including text fields wich can contain up to 255 chars. I need a table with 3 columns: - First column 50 % over the with a rowspan of the total...
4
by: JLJ | last post by:
I have a very simple webservice written in Java/Axis. It takes in a complexType with 2 string elements, userid and password. The response is a complexType containing two complexTypes each having...
2
by: david | last post by:
I have written the Web Services in VBaic .Net. One function interface: DataSet GetAllPatients() which will be called in remote client and return DataSet. I have written the clients by using both...
4
by: Saverio Tedeschi | last post by:
Hi all gurus, I'm getting a strange behaviour in Web services design: when I try to open a connection, or to fill a DataSet, I get the error in subj (totally unrelated to the actual error). I've...
0
by: joshuajnoble | last post by:
Hi all, I'm having a strange problem where I need to build out form variables in an HTTPWebRequest and send them to an aspx page for processing. The page isn't recognizing the form variables at...
1
by: budsoda | last post by:
Help! I have a ASP.NET application, upgraded from 1.0 framework to 3.5, I have a ItemTemplate column, in it I defined a "LinkButton" control. <Columns> <asp:TemplateField...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
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:
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: 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: 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...

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.