怎么让服务器端获得本页的值

来源:百度知道 编辑:UC知道 时间:2024/07/03 02:39:31
在一个jsp页面中我想直接获得html标签中的值,然在服务器端做一些动作!
也就是从服务器端获得客户端的值,不用表单提交!我要客户端提交某个值!

private void Button1_Click(object sender, System.EventArgs e)
{
string a="1000";
Response.Write("<script language=javascript>");

Response.Write("window.alert(\"您的预存款不足\")");
Response.Write(";");
Response.Write("window.location.href=(\"WebForm4.aspx?type=\"+a+"\")");

Response.Write("window.location.href=WebForm4.aspx;");
Response.Write("</script>");
Response.End();

}

////////
Response.Write("window.location.href=(\"WebForm4.aspx?type=\"+a+"\")");