コード例 #1
0
 protected void btnUserInfoSubmit_Click(object sender, EventArgs e)
 {
     try
     {
         int dfltPrg = 0;
         if (ddlVHCBProgram.SelectedIndex != 0)
         {
             dfltPrg = Convert.ToInt32(ddlVHCBProgram.SelectedValue.ToString());
         }
         AccountData.AddUserInfo(txtFname.Text, txtLname.Text, txtPassword.Text, txt1Email.Text, dfltPrg);
         BindUserInfo();
         ClearFields();
         lblErrorMsg.Text = "User Information added successfully";
     }
     catch (Exception ex)
     {
         lblErrorMsg.Text = ex.Message;
     }
 }