Example #1
0
 private void bindData()
 {
     System.Int32 EditId;
     if (Request.QueryString["id"] == null)
     {
         return;
     }
     else
     {
         EditId = System.Int32.Parse(Request.QueryString["id"].ToString());
         Users m_Users = new Users();
         m_Users.UserId  = EditId;
         m_Users         = m_Users.Get();
         txUserName.Text = m_Users.UserName.ToString();
         txPassword.Text = m_Users.Password.ToString();
         txFullName.Text = m_Users.FullName.ToString();
         txAddress.Text  = m_Users.Address.ToString();
         txEmail.Text    = m_Users.Email.ToString();
         txMobile.Text   = m_Users.Mobile.ToString();
         txGenderId.Text = m_Users.GenderId.ToString();
         DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserStatuss.Static_GetList(), " ... ", m_Users.UserStatusId.ToString());
         DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserTypes.Static_GetList(), " ... ", m_Users.UserTypeId.ToString());
         txDefaultActionId.Text = m_Users.DefaultActionId.ToString();
         txBirthDay.Text        = m_Users.BirthDay.ToString("dd/MM/yyyy");
         txCrDateTime.Text      = m_Users.CrDateTime.ToString("dd/MM/yyyy");
     }
 }
Example #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     ActUserId = SessionHelpers.GetUserId();
     try
     {
         if (!IsPostBack)
         {
             DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserStatuss.Static_GetList(), " ... ", "0");
             DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserTypes.Static_GetList(), " ... ", "0");
             ShowGrid();
         }
         else if (CustomPaging.ChangePage)
         {
             ShowGrid();
         }
     }
     catch (Exception ex)
     {
         sms.utils.Log.writeLog(ex.ToString(), ((new System.Diagnostics.StackTrace()).GetFrames()[0]).GetMethod().Name);
     }
 }
Example #3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     try
     {
         ActUserId = SessionHelpers.GetUserId();
         if (!IsPostBack)
         {
             if (Request.QueryString["id"] == null)
             {
                 DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserStatuss.Static_GetList(), " ... ", "0");
                 DropDownListHelpers.DDL_Bind(ddlUserStatusId, UserTypes.Static_GetList(), " ... ", "0");
             }
             else
             {
                 bindData();
             }
         }
     }
     catch (Exception ex)
     {
         sms.utils.LogFiles.LogError(((new System.Diagnostics.StackTrace()).GetFrames()[0]).GetMethod().Name + "\t" + ex.ToString());
         JSAlertHelpers.Alert(ex.Message, this);
     }
 }