Ejemplo n.º 1
0
 protected void ButtonSignUpConfirm_Click(object sender, EventArgs e)
 {
     try
     {
         if (Page.IsValid)
         {
             SDS_Renter.Insert();
             Response.Redirect("Login.aspx?NU=1888&UN=" + TB_UserName.Text);
         }
     }
     catch { }
 }
Ejemplo n.º 2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!IsPostBack)
     {
         try
         {
             if (!Session["RenterID"].ToString().Equals(""))
             {
                 DataView dvRenter = (DataView)SDS_Renter.Select(DataSourceSelectArguments.Empty);
                 TB_FN.Text = dvRenter[0][3].ToString();
                 TB_LN.Text = dvRenter[0][4].ToString();
                 TB_EM.Text = dvRenter[0][2].ToString();
                 TB_AD.Text = dvRenter[0][5].ToString();
                 TB_CI.Text = dvRenter[0][6].ToString();
                 TB_ST.Text = dvRenter[0][7].ToString();
                 TB_ZC.Text = dvRenter[0][8].ToString();
             }
         }
         catch
         {
             Response.Redirect("Login.aspx");
         }
     }
 }