//传递页面  protected void Button1_Click(object sender, EventArgs e)
        {
            Response.Redirect("AddUserInfo.aspx");
        }
  if (!IsPostBack)
            {
                if (Request.Form["radUser"] != null)
                {
                    Response.Write("123");
                }
            }
//这个是接受页面 怎么不能post过来?

解决方案 »

  1.   

    传递页面的form的action是什么?
      

  2.   


         protected void Page_Load(object sender, EventArgs e)
            {
                if (Request.Form["radUser"] != null)
                {
                    Response.Write("123");
                }
            }        protected void Button1_Click(object sender, EventArgs e)
            {
            }
    但是我在当前页面留空 本页面是可以接受到得...什么原因啊?
      

  3.   

    用的是模板页面!  我应该怎么做? 把模板的那个form删除掉。 给当前子页面加个form么?
      

  4.   

     Response.Redirect("AddUserInfo.aspx?radUser=sadfsdf") 这样才是传递呢
      

  5.   

    去掉runatserver
    method="get/post"
    action="url"
    这样肯定成地
      

  6.   

    form的action属性不设置,默认就是提交到当前页面,所以你在本页当然可以得到值了。你用的模板页的话,还是不要用POST方式了,用get或者其它方式传吧
      

  7.   


    form method="post" action="AddUserInfo.aspx">
        <table cellpadding="0" cellspacing="0">
            <tr>
                <td style="width:150px;">
                    &nbsp;<img alt="" src="Images/1.gif" style="width: 25px; height: 25px" />确认服务条款<td
                    class="style2">
                    <img alt="" src="Images/2.gif" style="width: 25px; height: 25px" /><span style="font-weight:bold;color:#000000;">用户选择类别</span></td>
                <td class="style3">
                    <img alt="" src="Images/3.gif" style="width: 25px; height: 25px" />填写账户信息</td>
                <td style="width:150px;">
                    <img alt="" src="Images/4.gif" style="width: 25px; height: 25px" />注册成功</td>
            </tr>
            <tr>
                <td colspan="4">
                    <img alt="" src="Images/a2.gif" style="width: 274px; height: 45px" /><hr />
                    </td>
                
            </tr>
            <tr>
                <td colspan="4">
                    <input id="Radio1" type="radio" name="radUser"  value="1" checked="checked" /><font color="#666666">注册完成后拥有一个本站的个人后台,您可以在这里查找、收藏、订阅、发布家居秀等各种建材类信息;并且您也成为本站社区的会员……</font></td>
            </tr>
            <tr>
                <td colspan="4">
                    <input id="Radio2" type="radio" name="radUser" value="2"/><font color="#666666">注册完成后拥有一个本站装饰公司智能网站,您可以在这里发布公司介绍、设计师、设计作品、工程案例等信息;同时可以和其他设计师同行在线交流、留言、发信;并且您也成为本站社区的会员……</font></td>
            </tr>
            <tr>
                <td colspan="4">
                    <input id="Radio3" type="radio" name="radUser" value="3" /><font color="#666666">注册完成后拥有一个本站网上建材商铺,您可以在这里发布公司介绍、产品、供求、工程案例、人才招聘、征经销商等信息;同时可以和其他建材商人同行在线交流、留言、发信;并且您也成为本站社区的会员…</font></td>
            </tr>
            <tr>
                <td colspan="4" align="center">
                <font color="#ff0000">注意:请正确选择选择用户类别,这很重要,注册后您将不可再修改用户类别</font></td>
                
            </tr>
            <tr>
                <td colspan="4" align="center">
                    <input id="Button1" type="submit" value="下一步" onclick="return Button1_onclick()" /></td>
                
            </tr>
        </table>
    </div>
    </form>
    我现在问题是...怎么点了按钮没反应呢?  模板页的问题么?