Tech Support Forum banner

I'm a beginner.....need help

1428 Views 5 Replies 3 Participants Last post by  ba7er
Server Error in '/WebSite4' Application.

Control 'ctl00_TextBox1' of type 'TextBox' must be placed inside a form tag with runat=server.


What does this messege means???
help me as fast as you can


Status
Not open for further replies.
1 - 6 of 6 Posts
Can you provide a little more information?

Source for example? are you using a CMS?
You are facing a problem in the text box that need to be putted in the inside of the form tag which is by default in the web formand you are writting severside so the code of the the text box must as run at server.
I attached the error
and here is the source :
<%@ Page Language="VB" MasterPageFile="~/SvuMaster.master" AutoEventWireup="false" CodeFile="Booking.aspx.vb" Inherits="_Default" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<asp:Label ID="Label1" runat="server" Style="z-index: 100; left: 512px; position: absolute;
top: 224px" Text="From"></asp:Label>
<asp:DropDownList ID="DropDownList1" runat="server" Style="z-index: 101; left: 576px;
position: absolute; top: 224px">
</asp:DropDownList>
<br />
<asp:Label ID="Label2" runat="server" Style="z-index: 102; left: 512px; position: absolute;
top: 256px" Text="To"></asp:Label>
<asp:CheckBox ID="CheckBox1" runat="server" Style="z-index: 103; left: 576px; position: absolute;
top: 280px" />
<asp:Label ID="Label3" runat="server" Style="z-index: 104; left: 479px; position: absolute;
top: 288px" Text="OneWay Only" Width="88px"></asp:Label>
<asp:DropDownList ID="DropDownList2" runat="server" Style="z-index: 105; left: 576px;
position: absolute; top: 256px">
</asp:DropDownList>
<asp:Label ID="Label4" runat="server" Style="z-index: 106; left: 504px; position: absolute;
top: 328px" Text="Currency"></asp:Label>
<asp:DropDownList ID="DropDownList3" runat="server" Style="z-index: 107; left: 576px;
position: absolute; top: 328px">
</asp:DropDownList>
<asp:Label ID="Label5" runat="server" Style="z-index: 108; left: 512px; position: absolute;
top: 360px" Text="Depart"></asp:Label>
<asp:DropDownList ID="DropDownList4" runat="server" Style="z-index: 109; left: 576px;
position: absolute; top: 360px">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList5" runat="server" Style="z-index: 110; left: 680px;
position: absolute; top: 360px">
</asp:DropDownList>
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<br />
<asp:Label ID="Label6" runat="server" Style="z-index: 111; left: 512px; position: absolute;
top: 400px" Text="Return"></asp:Label>
<asp:DropDownList ID="DropDownList6" runat="server" Style="z-index: 112; left: 576px;
position: absolute; top: 400px">
</asp:DropDownList>
<asp:DropDownList ID="DropDownList7" runat="server" Style="z-index: 113; left: 680px;
position: absolute; top: 400px">
</asp:DropDownList>
<asp:Button ID="Button1" runat="server" Style="z-index: 114; left: 552px; position: absolute;
top: 480px" Text="Book" Width="136px" />
<asp:Label ID="Label7" runat="server" Style="z-index: 115; left: 512px; position: absolute;
top: 440px" Text="Guest"></asp:Label>
<asp:DropDownList ID="DropDownList8" runat="server" Style="z-index: 117; left: 576px;
position: absolute; top: 440px">
</asp:DropDownList>
</asp:Content>

What is you seggastions

Attachments

See less See more
All the component run at server.....but the proplem still shown
HelpHelpHelpHelpHelpHelpHelpHelpHelpHelpHelpHelp
1 - 6 of 6 Posts
Status
Not open for further replies.
Top