protected void Select_Associate_Details(string profileId)
{
nvclin["ProfileId"] = profileId;
DataTable dt = objMaster.Select_Member_Associate_Details(nvclin);
if (dt.Rows.Count > 0)
{
if (dt.Rows.Count > 2)
{
lblass1.Text = dt.Rows[0]["AssociateName"].ToString();
lblasscompany1.Text = dt.Rows[0]["AssociateCompany"].ToString();
lblassMobile1.Text = dt.Rows[0]["AssociateMobile"].ToString();
lblassEmail1.Text = dt.Rows[0]["AssociateEmail"].ToString();
if (dt.Rows[0]["AssociatePhoto"].ToString() != "")
{
ltrAssocaiateImage1.Text = "";
ltrAssocaiateImage1.Text = "<img src=\"" + ConfigurationManager.AppSettings["WebURL"].ToString() + dt.Rows[0]["AssociatePhoto"].ToString() + "\" alt=\"ProfilePhoto\" />";
}
hdfAssociate1.Value = dt.Rows[0]["AssociateID"].ToString();
nvclin["AssociateID"] = hdfAssociate1.Value;
DataTable dtExp1 = objMaster.Select_Associate_Expertise_Details(nvclin);
string strAssexpertise1 = "";
if (dtExp1.Rows.Count > 0)
{
foreach (DataRow row in dtExp1.Rows)
{
strAssexpertise1 += row["Expertise"].ToString() + " / ";
}
strAssexpertise1 = strAssexpertise1.Remove(strAssexpertise1.Length - 2);
}
else
{
strAssexpertise1 = "Not Available";
}
lblassExpertise1.Text = strAssexpertise1;
lblass2.Text = dt.Rows[1]["AssociateName"].ToString();
lblasscompany2.Text = dt.Rows[1]["AssociateCompany"].ToString();
lblassMobile2.Text = dt.Rows[1]["AssociateMobile"].ToString();
lblassEmail2.Text = dt.Rows[1]["AssociateEmail"].ToString();
if (dt.Rows[0]["AssociatePhoto"].ToString() != "")
{
ltrAssocaiateImage2.Text = "";
ltrAssocaiateImage2.Text = "<img src=\"" + ConfigurationManager.AppSettings["WebURL"].ToString() + dt.Rows[1]["AssociatePhoto"].ToString() + "\" alt=\"ProfilePhoto\"/>";
}
hdfAssociate2.Value = dt.Rows[1]["AssociateID"].ToString();
nvclin["AssociateID"] = hdfAssociate2.Value;
DataTable dtExp2 = objMaster.Select_Associate_Expertise_Details(nvclin);
string strAssexpertise2 = "";
}