日期:2014-05-16 浏览次数:20433 次
用户名:<input type="text" id="a" name="aa" /><br />
密码:<input type="text" id="b" name="bb"/><br />
<input type="button" id="Text2" value="确定"/>
<script type="text/javascript">
var a = document.getElementById("a");
var b = document.getElementById("b");
var btn = document.getElementById("Text2");
btn.onclick = function () {
window.location.href = "Test1.aspx?a="+a+"&b="+b;
}
</script>
protected void Page_Load(object sender, EventArgs e)不对,请大神指教,回答好,大大加分。
{
a.Value = Request.QueryString["a"];
b.Value = Request.QueryString["b"];
}