前台button单击后,获取ID的值
用服务器端标签赋值就行了
<input type="button" onclick="alert('<%=id%>')"
你需要是传参数这样就行了 if(!IsPostBack) { string name = Request.QueryString["name"]; Response.Write(name); }