Question : TextBox Must Be Placed Inside Form Tag Error

Good Day:

I am creating a web application using ASP.NET 2005 and VB.NET and SQL Server 2000.  I get the following error message when I try to open my search.aspx page:
Control 'ctl00_ContentPlaceHolder1_txtPartNumber' of type 'TextBox' must be placed inside a form tag with runat=server.

Where should I put the form tag for the following:
%@ Page Language="VB" MasterPageFile="~/PwtProducts.master" AutoEventWireup="false" CodeFile="Search.aspx.vb" Inherits="Search" title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

    &nbsp;<asp:Label ID="Label1" runat="server" Text="Part Number:"></asp:Label>
     
        <asp:TextBox ID="txtPartNumber" runat="server"></asp:TextBox>
     

    <asp:Button ID="btnSubmit" runat="server" Text="Submit" /><br />

    <asp:TextBox ID="txtInventory" runat="server" Height="128px" Width="312px"></asp:TextBox>
</asp:Content>

Thank You,
Denise

Answer : TextBox Must Be Placed Inside Form Tag Error

Okay - answers to your questions:

netbios name should be the name displayed when you type set at a command prompt - use the USERDOMAIN variable, but only the first 15 characters if you have a long name.

Realm is fine

Any certificate issued to a .local address will never work.  It has to be a name that resolves in DNS so you will need to reissue your certificate with something like mail.domain.com

FQDN locally is fine as an A record.

iPhone settings:
Server - mail.domain.com (needs to resolve in DNS and match the name on the certificate)
Domain - just domain

You will never be a pain.  If you are not sure - asking is the best way to find out and if I have not spelled it out in my article, that's my fault ; )
Random Solutions  
 
programming4us programming4us