Author: Me_Learner | Posted on: 10/7/2009 6:19:25 AM | Views : 234

  Hi All
I am facing a problem in the below code.
DCorNR is a variable that is declared in my code behind file.
Strange thing is that whether DCorNR has a value "DC" or "NR" ,code written in both the if statement is executing which produces erroneous output.Please help me why code written in both if statement is executing.
<asp:datalist id="Reasons" runat="server" Width="100%" CellPadding="0" CellSpacing="0"> <HeaderStyle HorizontalAlign="Center" VerticalAlign="Bottom" /> <ItemTemplate> <table width="100%" border="0" cellSpacing="0" cellPadding="0"> <tr align="center"><td valign="top" class="pagehlight"><font class="fData"><% if DCorNR="N ...

Go to the complete details ...