ascx出错:类型“TextBox”的控件“usermodify_TBPASSOLD”必须放在具有 runat=server 的窗体标记内,怎么解决!
ascx出错:类型“TextBox”的控件“usermodify_TBPASSOLD”必须放在具有 runat=server 的窗体标记内,怎么解决!
不加:
<form id=form1 runat=server>
</form>
报错:类型“TextBox”的控件“usermodify_TBPASSOLD”必须放在具有 runat=server 的窗体标记内
加上
<form id=form1 runat=server>
</form>
则报错:
一页只能有一个服务器端 Form 标记。
<%@ Control Language= "c# " AutoEventWireup= "false " Codebehind= "usermodify.ascx.cs " Inherits= "Radio.WebFile.control.usermodify " TargetSchema= "http://schemas.microsoft.com/intellisense/ie5 "%>
<body leftmargin= "0 " topmargin= "0 " marginwidth= "0 " marginheight= "0 ">
<form id=form1 runat=server>
<FIELDSET> <LEGEND> 修改密码 </LEGEND> 请输入您的旧密码:
<asp:textbox id= "TBPASSOLD " runat= "server "> </asp:textbox> <FONT face= "宋体 "> <BR>
请输入您的新密码:
<asp:textbox id= "TBPASSNEW1 " runat= "server "> </asp:textbox> <BR>
请输入新确认密码:
<asp:textbox id= "TBPASSNEW2 " runat= "server "> </asp:textbox> <BR>
<BR>
<INPUT id= "Button1 " type= "submit " value= "更新密码 " name= "Button1 " runat= "server "> <SPAN id= "ChangePassMsg ">
</SPAN> </FONT>
</FIELDSET>
<FIELDSET> <LEGEND> 修改人个资料 </LEGEND>
<TABLE id= "Table1 " cellSpacing= "0 " cellPadding= "5 " width= "575 " border= "0 ">
<TBODY>
<TR>
<TD align= "right " width= "186 "> 用户名: </TD>
<TD width= "369 "> <SPAN id= "Man_User_Name "> <asp:label id= "Label1 " runat= "server " Width= "168px "> Label </asp:label> </SPAN> </TD>
</TR>
<TR>
<TD align= "right "> <FONT face= "宋体 "> 姓名: </FONT> </TD>
<TD> <FONT face= "宋体 "> <asp:textbox id= "TBREALNAME " runat= "server " Width= "156 " Height= "24 "> </asp:textbox> </FONT> </TD>
</TR>
<TR>
<TD align= "right "> 公司名称: </TD>
<TD> <asp:textbox id= "TBCOMPANYNAME " runat= "server " Width= "352px "> </asp:textbox> </TD>
</TR>
<TR>
<TD align= "right "> 公司地址: </TD>
<TD> <asp:textbox id= "TBCOMPANYADDRESS " runat= "server " Width= "352px "> </asp:textbox> </TD>
</TR>
<TR>
<TD align= "right "> <FONT face= "宋体 "> 电话: </FONT> </TD>
<TD> <asp:textbox id= "TBTEL " runat= "server " Widt