private GeneralDetails GD = new GeneralDetails(); public int InsertRegDetails() { GD.FirstName = txtFirstName.Text; GD.MiddleName = txtMiddleName.Text; GD.LastName = txtLastName.Text;
protected void LinkButton1_Click(object sender, EventArgs e) { try { Status = RegInGeneral1.InsertRegDetails(); dvMessage.Visible = true; dvReg.Visible = false; ShowMessage1.Success = SessionVariables.MsgSuccessfulyReg; ShowMessage1.Failure = SessionVariables.MsgAlreadtReg; if (Status == 1) { ShowMessage1.showSuccess = true; } else { ShowMessage1.showSuccess = false; dvMessage.Visible = false; dvReg.Visible = true; } } catch (Exception ex) { SessionVariables.ErrorMessage(DateTime.Now + " SessionId = " + Session.SessionID.ToString() + " ip = " + SessionVariables.IPAddress + " Error Message:" + ex.Message); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)