protected void Button4_Click1(object sender, EventArgs e) { //if (!IsPostBack) if (CheckBox1.Checked == true) bindgrid(); } protected void Button5_Click(object sender, EventArgs e) { if (CheckBox2.Checked == true) busbindgrid(); }
Boolean IsPageRefresh; protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { ViewState["postids"] = System.Guid.NewGuid().ToString(); Session["postid"] = ViewState["postids"].ToString(); } else { if (ViewState["postids"].ToString() != Session["postid"].ToString()) { IsPageRefresh = true; } Session["postid"] = System.Guid.NewGuid().ToString(); ViewState["postids"] = Session["postid"].ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)