protected void Page_Load(object sender, EventArgs e) { ScriptManager.RegisterClientScriptBlock(this, this.GetType(), "txtCode_PostBack", BarcodeBLL.JScript4Postback(), true); if (Request.Url.ToString().ToLower().Contains("default") || Request.Url.ToString().ToLower().Contains("din.aspx")) { } else { txtMasterCode.Focus(); } }