protected void Page_Load(object sender, EventArgs e) { if (Session["UserType"] == null || Convert.ToInt32(Session["UserType"]) != Global.AdminUserType) //admin { Global.Application_AccessDenied(sender, e); } else { SqlDataSource1.ConnectionString = Global.getConnectionString(); } RoleName.Focus(); }
/// <summary> /// This Function is used TextBox Empty. /// </summary> private void clear() { RoleName.Text = ""; TextArea1.InnerText = ""; RoleName.Focus(); }