protected void Page_Load(object sender, EventArgs e) { ScriptManager.GetCurrent(this.Page).RegisterPostBackControl(Button1); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ExpiresAbsolute = DateTime.Now.AddMonths(-1); if (!IsPostBack) { Tbxoper01.BackColor = System.Drawing.Color.LightSteelBlue; Tbxoper01.Focus(); } }
protected void Page_Load(object sender, EventArgs e) { ScriptManager.RegisterStartupScript(this, this.GetType(), "LaunchServerSide", "$(function() { myModal(); });", true); // ClientScript.RegisterStartupScript(this.GetType(), "alert", "myModal();", true); Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.ExpiresAbsolute = DateTime.Now.AddMonths(-1); if (!IsPostBack) { Tbxoper01.BackColor = System.Drawing.Color.LightSteelBlue; Tbxoper01.Focus(); } }