菜鸟问题2-求救!
代码:
<asp:Panel id="Panel1" runat="server" Height="176px">
<TABLE height="103" cellSpacing="0" cellPadding="3" width="100%" border="0">
<TR>
<TD class="hei" width="160" colSpan="2" height="50"><FONT face="宋体"></FONT></TD>
</TR>
<TR>
<TD class="hei" align="right" width="40%" height="30">用户名:</TD>
<TD width="100"><FONT face="宋体"><INPUT id="UserName" style="WIDTH: 80px; HEIGHT: 22px" type="text" size="8" runat="server"></FONT></TD>
</TR>
<TR>
<TD class="hei" align="right" height="30">密 码:</TD>
<TD width="100"><INPUT id="PassWord" style="WIDTH: 80px; HEIGHT: 22px" type="text" size="8" runat="server"></TD>
</TR>
<TR>
<TD class="hei" align="center" width="160" colSpan="2" height="40">
<asp:ImageButton id="ImageButton1" runat="server" ImageUrl="../images/dl.gif"></asp:ImageButton></TD></TR>
</TABLE>
</asp:Panel>
错误信息:
异常详细信息: System.Web.HttpException: 类型“ImageButton”的控件“DL1_ImageButton1”必须放在具有 runat=server 的窗体标记内。
我明明放在runat="Server"啊