Hi,
I have written the following if else statement. But either the AonSite is Aon or NonAon I am getting the same result which is Policy_Ace.xsl. I wanted if Aonsite = Aon then Policy_Aon.xsl to be displayed, if not Policy_Ace to be displayed.
else if ((docType == enuDocument.Policy) || (docType == enuDocument.Renewal) || (docType == enuDocument.Endorsement) || (docType == enuDocument.PolicyAgreed))//SCR230615-01 change
{
if (MyProposal.AonSite == "Aon")
{
p.AddPDFSection(strXml, Server.MapPath(versionPath + "Policy_Aon.xsl"), false);
}
else
{
p.AddPDFSection(strXml, Server.MapPath(versionPath + "Policy_Ace.xsl"), false);
}
}
Durga