これは非常に単純な質問です。私はasp.netを初めて使用しています。連絡先のページを作成しようとしていて、次のエラーが発生しています。 「タイプ 『テキストボックス(TextBox)』の制御 『ContentPlaceHolder1_nameBoxは』にrunat =サーバーとのformタグの内側に配置されなければならない」ASP.netお問い合わせページ
次は、そのページのこれまでの私のコードです。
<%@ Page Title="" Language="C#" MasterPageFile="~/Site1.Master" AutoEventWireup="true" CodeBehind="ContactUs.aspx.cs" Inherits="Craigavon_Aquatics.ContactUs" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<h2>
Contact Us</h2>
<p>
Please fill in the form below to contact us.</p>
<p>
</p>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<table style="width: 100%">
<tr>
<td>
Name: (Required)</td>
</tr>
<tr>
<td>
<asp:TextBox ID="nameBox" runat="server" Width="278px"></asp:TextBox>
</td>
</tr>
<tr>
<td>
Email: (Required)</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</asp:Content>
+1:良い説明! – naveen