Exemplo n.º 1
0
 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();
 }
Exemplo n.º 2
0
 /// <summary>
 /// This Function is used TextBox Empty.
 /// </summary>
 private void clear()
 {
     RoleName.Text       = "";
     TextArea1.InnerText = "";
     RoleName.Focus();
 }