/// <summary> /// Bind name, email,mobile number to textbox /// </summary> /// <param name="candidateId">candidateId</param> private void BindRequestEmail(string candidateId) { try { DataSet dsRequestEmail = new DataSet(); RequestEmailJSBAL requestEmailJSBAL = new RequestEmailJSBAL(); dsRequestEmail = requestEmailJSBAL.GetEmailBAL(candidateId); string firstName, lastName; // Check if dataset is not null if (dsRequestEmail != null) { if (dsRequestEmail.Tables.Count > 0) { if (dsRequestEmail.Tables[0].Rows.Count > 0) { txtFrom.Text = Convert.ToString(dsRequestEmail.Tables[0].Rows[0]["EmailId"]); firstName = Convert.ToString(dsRequestEmail.Tables[0].Rows[0]["FirstName"]); lastName = Convert.ToString(dsRequestEmail.Tables[0].Rows[0]["LastName"]); txtName.Text = firstName + " " + lastName; txtMobNo.Text = Convert.ToString(dsRequestEmail.Tables[0].Rows[0]["MobileNo"]); } } } } catch (Exception) { // throw; } }
private void BindRequestEmail(string candidateId) { try { DataSet dsRequestEmail = new DataSet(); RequestEmailJSBAL requestEmailJSBAL = new RequestEmailJSBAL(); dsRequestEmail = requestEmailJSBAL.GetEmailBAL(candidateId); if (dsRequestEmail != null) { email = Convert.ToString(dsRequestEmail.Tables[0].Rows[0]["EmailId"]); } } catch (Exception) { throw; } }