Exemplo n.º 1
0
 /// <summary>
 /// Bind all menu list
 /// </summary>
 public void INF_Get_MenuList()
 {
     try
     {
         DDLMenu.DataSource     = objMenuBLL.INF_Get_MenuList();
         DDLMenu.DataTextField  = "Menu";
         DDLMenu.DataValueField = "Menu_Code";
         DDLMenu.DataBind();
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }
Exemplo n.º 2
0
 protected void btnClearFilter_Click(object sender, ImageClickEventArgs e)
 {
     try
     {
         DDLCompany.ClearSelection();
         DDLDepartment.ClearSelection();
         DDLMenu.ClearSelection();
         DDLMenu.ClearSelection();
         DDLSubMenu.ClearSelection();
         DDLUser.ClearSelection();
         DDLPageName.ClearSelection();
         Bind_AccessRightsReport();
     }
     catch (Exception ex)
     {
         UDFLib.WriteExceptionLog(ex);
         string js = "alert('" + UDFLib.GetException("SystemError/ GeneralMessage") + "');";
         ScriptManager.RegisterStartupScript(this, this.GetType(), "error", js, true);
     }
 }