JS頁面值傳遞
<script type="text/javascript"> function GetValue() { var url=location.search; var Request = new Object(); if(url.indexOf("?")!=-1) { var str = url.substr(1) //去掉?号 strs = str.split("&"); for(var i=0;i<strs.length;i++) { Request[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]); } document.getElementById("<%= txtEmpNo.ClientID %>").value=Request['No']; document.getElementById("<%= txtDate.ClientID %>").value=Request['Date'].replace(/[\/]/g, "-"); } } </script>