userControl 的问题 <uc1:vote id="Vote1" runat="server"> </uc1:vote> 这个控件里面 不要再写 <form...> 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 同意楼上的,只要不出现两个<form></form>标记就OK了!~~加油吧,很容易学的!!! 我改了改又出了新的问题,不知道是不是有联系的,系统帮我看看,类型“RadioButton”的控件“Vote1_rbtn_Items_0”必须放在具有 runat=server 的窗体标记内。 我想做一个投票的模块,放在userControl里的。<%@ Control language="c#" Codebehind="vote.ascx.cs" AutoEventWireup="false" Inherits="MRS_WebUI.Controls.vote" %><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" ><HTML> <HEAD> <title>vote</title> <meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR"> <meta content="C#" name="CODE_LANGUAGE"> <meta content="JavaScript" name="vs_defaultClientScript"> <meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema"> </HEAD> <body MS_POSITIONING="GridLayout" runat="server"> <TABLE height="305" cellSpacing="0" cellPadding="0" width="596" border="0" ms_2d_layout="TRUE"> <TR vAlign="top"> <TD width="160" height="40"></TD> <TD width="436"></TD> </TR> <TR vAlign="top"> <TD height="265"></TD> <TD> <TABLE id="Table2" height="264" cellSpacing="1" cellPadding="1" width="435" border="1" align="center"> <TR> <TD align="center" bgColor="#00ffff"><FONT id="FONT1" face="宋体" runat="server"> <asp:Label id="lbl_Title" runat="server">xxxx</asp:Label></FONT></TD> </TR> <TR> <TD><FONT face="宋体"> <asp:RadioButtonList id="rbtn_Items" runat="server" Width="320px"> <asp:ListItem></asp:ListItem> <asp:ListItem></asp:ListItem> <asp:ListItem></asp:ListItem> </asp:RadioButtonList></FONT></TD> </TR> <TR> <TD align="center" bgColor="#33ffff"><FONT face="宋体"> <asp:Button id="btn_vote" runat="server" Text="投票"></asp:Button> <asp:Button id="btn_result" runat="server" Text="结果"></asp:Button></FONT></TD> </TR> </TABLE> </TD> </TR> </TABLE> </body></HTML> C#程序启动SQL2005数据库 SilverLight中子窗体怎么获取父窗体鼠标选中的值? 求一个功能 c#中读取db记录的小问题 log4net多进程写log已配置MinimalLock仍有问题,求解答 c# 调c++ dll 尝试读取或写入受保护的内存。这通常指示其他内存已损坏 准备写一个异步程序,请大家指点一下 怎样存取二进制图片 C#listview 添加的item怎么添加点击事件 异步调用webservice,等待返回结果,用sleep后醒不过来怎么办? 如何在c#.NET 下建立私有的Web service UDDI注册中心? 求1-2个下载WinForm项目地址!
类型“RadioButton”的控件“Vote1_rbtn_Items_0”必须放在具有 runat=server 的窗体标记内。
我想做一个投票的模块,放在userControl里的。<%@ Control language="c#" Codebehind="vote.ascx.cs" AutoEventWireup="false" Inherits="MRS_WebUI.Controls.vote" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
<HTML>
<HEAD>
<title>vote</title>
<meta content="Microsoft Visual Studio .NET 7.1" name="GENERATOR">
<meta content="C#" name="CODE_LANGUAGE">
<meta content="JavaScript" name="vs_defaultClientScript">
<meta content="http://schemas.microsoft.com/intellisense/ie5" name="vs_targetSchema">
</HEAD>
<body MS_POSITIONING="GridLayout" runat="server">
<TABLE height="305" cellSpacing="0" cellPadding="0" width="596" border="0" ms_2d_layout="TRUE">
<TR vAlign="top">
<TD width="160" height="40"></TD>
<TD width="436"></TD>
</TR>
<TR vAlign="top">
<TD height="265"></TD>
<TD>
<TABLE id="Table2" height="264" cellSpacing="1" cellPadding="1" width="435" border="1"
align="center">
<TR>
<TD align="center" bgColor="#00ffff"><FONT id="FONT1" face="宋体" runat="server">
<asp:Label id="lbl_Title" runat="server">xxxx</asp:Label></FONT></TD>
</TR>
<TR>
<TD><FONT face="宋体">
<asp:RadioButtonList id="rbtn_Items" runat="server" Width="320px">
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
<asp:ListItem></asp:ListItem>
</asp:RadioButtonList></FONT></TD>
</TR>
<TR>
<TD align="center" bgColor="#33ffff"><FONT face="宋体">
<asp:Button id="btn_vote" runat="server" Text="投票"></asp:Button>
<asp:Button id="btn_result" runat="server" Text="结果"></asp:Button></FONT></TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>
</body>
</HTML>