前台JS代码:
$(document).ready(function(){
var s=$("#isShow").attr("value");alert(s);
if(s=="y")
{
$("#Button1").hide();
}
});
后台:
if (!IsPostBack)
{
if (Request.QueryString["id"] != null && Request.QueryString["id"].ToString() != "")
{
BindData(Request.QueryString["id"].ToString());
this.btn_update.Visible = false;
}
else {
BindData();
this.isShow.Value = "y";
}
}