none
后台获取前台变量的问题 RRS feed

  • 问题

  • 前台: <script language="javascript" type="text/JavaScript">
            function Querydata() {
                var strDepPort = document.getElementById("DepPort").value;
                var strArrPort = document.getElementById("ArrPort").value;
                document.getElementById("hdDepPort").value = strDepPort;
                document.getElementById("hdArrPort").value = strArrPort;
              
            }
    </script>
    后台:
            if (Request["hdDepPort"] != null)
            {
                string strDepPort = Request["hdDepPort"].ToString();
            }
            if (Request["hdArrPort"] != null)
            {
                string strArrPort = Request["hdArrPort"].ToString();
            }
    后台取不到值,请大家帮我看看。谢谢!
    macle
    2009年8月6日 9:07

答案

全部回复