protected void btnCoorporate_Click(object sender, EventArgs e) { try { ClsBAL obj = new ClsBAL(); lblCorporate.Text = obj.InsertAgentRequest(txtCorName.Text.ToString(), txtCorEmail.Text.ToString(), txtcorOrganization.Text.ToString(), txtCorMobileNo.Text.ToString(), txtCorCity.Text.ToString(), ddlCorState.SelectedItem.Text.ToString(), txtComments.Text.ToString(), txtCorDist.Text, "coorporate", "", "", "","","",""); lblCorporate.ForeColor = System.Drawing.Color.Green; txtCorName.Text = txtCorEmail.Text = txtcorOrganization.Text = txtCorMobileNo.Text = txtCorCity.Text = txtComments.Text = txtCorDist.Text = ""; ddlCorState.ClearSelection(); } catch (Exception ex) { lblMsg.Text = ex.Message; throw; } }
protected void btnSignIn_Click(object sender, EventArgs e) { try { ClsBAL obj = new ClsBAL(); lblMsg.Text = obj.InsertAgentRequest(txtName.Text.ToString(), txtEmailId.Text.ToString(), txtOrganization.Text.ToString(), txtMobileNo.Text.ToString(), txtCity.Text.ToString(), ddlState.SelectedItem.Text.ToString(), txtComments.Text.ToString(), txtDistrict.Text, "Agent", Session["UserID"].ToString(), txtAppointmentTime.Text, ddlStatus.SelectedItem.Text, Session["UserName"].ToString(),txtAddress.Text,txtPincode.Text); // mail(); txtName.Text = txtEmailId.Text = txtOrganization.Text = txtMobileNo.Text = txtCity.Text = txtComments.Text = ""; ddlState.SelectedIndex = 0; } catch (Exception ex) { lblMsg.Text = ex.Message; throw; } }
protected void btnSignIn_Click(object sender, EventArgs e) { try { ClsBAL obj = new ClsBAL(); lblMsg.Text = obj.InsertAgentRequest(txtName.Text.ToString(), txtEmailId.Text.ToString(), txtOrganization.Text.ToString(), txtMobileNo.Text.ToString(), txtCity.Text.ToString(), ddlState.SelectedItem.Text.ToString(), txtComments.Text.ToString(), txtDistrict.Text, "", "","","","","",""); mail(); txtName.Text = txtEmailId.Text = txtOrganization.Text = txtMobileNo.Text = txtCity.Text = txtComments.Text = ""; ddlState.SelectedIndex = 0; } catch (Exception ex) { lblMsg.Text = ex.Message; throw; } }
protected void btnSignIn_Click(object sender, EventArgs e) { try { ClsBAL obj = new ClsBAL(); lblAgent.Text = obj.InsertAgentRequest(txtAgentName1.Text.ToString(), txtAgentEmail.Text.ToString(), txtOrganization.Text.ToString(), txtAgentMobilno.Text.ToString(), txtAgentCity.Text.ToString(), ddlAgentState.SelectedItem.Text.ToString(), txtComments.Text.ToString(), txtDistrict.Text, "Agent","","","","","",""); lblAgent.ForeColor = System.Drawing.Color.Green; mail1(); txtAgentName1.Text = txtAgentEmail.Text = txtOrganization.Text = txtAgentMobilno.Text = txtAgentCity.Text = txtComments.Text = ""; ddlAgentState.SelectedIndex = 0; } catch (Exception ex) { lblMsg.Text = ex.Message; throw; } }
protected void btnPendingRegister_Click(object sender, EventArgs e) { try { ClsBAL obj = new ClsBAL(); lblMsg.InnerText = obj.InsertAgentRequest(txtPendingReqName.Text, txtPendEmailid.Text.ToString(), "", txtPendingMobileNo.Text.ToString(), txtPendingCity.Text.ToString(), ddlPendingState.SelectedItem.Text.ToString(), TextBox12.Text, txtPendingDistrict.Text, "BSD", Session["UserId"].ToString(), txtPendAppointDate.Text,"","","",""); // mail(); ddlState.SelectedIndex = 0; } catch (Exception ex) { lblMsg.InnerText = ex.Message; throw; } }