protected void SbmtBttnId_Click(object sender, EventArgs e) { ROPAUtil obj = new ROPAUtil(); int result = obj.InsertFeedBackRecord(NameTxt.Text.Trim(), EmailIdTxt.Text.Trim(), txtphNumb.Text.Trim(), txtAddress.Text.Trim(), ddlCountry.SelectedValue, CommentTxt.Text.Trim()); if (result == 1) { //string mssg = obj.InsertedMessage(); lblmssg.Visible = true; lblmssg.Text = obj.InsertedMessage(); Div.Visible = false; } else { // string FailMssg = obj.FailMessage(); lblmssg.Visible = true; lblmssg.Text = obj.FailMessage(); } }
protected void Button1_Click(object sender, EventArgs e) { try { ROPAUtil obj = new ROPAUtil(); bool x = obj.CheckAvliablity(txtEmailId.Text.Trim()); if ((x)) { lblchAvl.Text = obj.CheckAvliablitySuccessMessage(); lblchAvl.Visible = true; lblchAvl.ForeColor = Color.Red; return; } List<UploadFile> L = ResolveList(); int result = obj.InsertRecord(txtFrstName.Text.Trim(), txtLastName.Text.Trim(), Convert.ToInt32(ddlRoleId.SelectedValue), txtpsswrd.Text.Trim(), txtEmailId.Text.Trim(), L); if (result == 1) { lblmssg.Visible = true; lblmssg.Text = obj.InsertedMessage(); ClearSession(); } } catch (Exception) { } }