用Javascript赋给隐藏字段
然后在后台读取隐藏字段的值

解决方案 »

  1.   

    <input type="hidden" value="" id="h1" runat=server />string ss = h1.Value;
      

  2.   

    1 隐藏的 text 控件: <INPUT class="text-main" id="txtParm" style="VISIBILITY: hidden; WIDTH: 25px; HEIGHT: 17px" type="text" size="1" name="Text1" runat="server>2 js赋值: document.all.txtParm.value = "??";
    3 后台类文件中取出: string strParm = txtParm.Value;
      

  3.   

    input type="hidden" value="" id="h1" runat=server />JS:document.formName.elements["h1"]=""
    后台:string strParm=h1.Text;