<uc1:vote id="Vote1" runat="server"> </uc1:vote> 
这个控件里面 不要再写 <form...>

解决方案 »

  1.   

    同意楼上的,只要不出现两个<form></form>标记就OK了!~~加油吧,很容易学的!!!
      

  2.   

    我改了改又出了新的问题,不知道是不是有联系的,系统帮我看看,
    类型“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>&nbsp;&nbsp;&nbsp;
    <asp:Button id="btn_result" runat="server" Text="结果"></asp:Button></FONT></TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    </body>
    </HTML>