i facing a problem in asp
the code goes like this
thereare two different database.
i have to add multple combo in the page only if my one condition is true.
eg
Expand|Select|Wrap|Line Numbers
- var RepName;
- RepName = "<%=ReportName%>"
- <%
- Set conn = Server.CreateObject("ADODB.Connection")
- conn.Open "'
- Set rs = ""
- If reportname = "ABC" then
- %>
- <table border="0" cellpadding="0" cellspacing="0" width="100%">
- <tr>
- <td class="filterCol1" width="27%">
- <b>Select Agency : </b></td>
- <td class="filterCol2" width="73%">
- <Select name = "xyz" multiple ="true">
- <option value= "all" selected="yes">Select All</option>
- <%
- Do while not rs.eof
- name = rs("name")
- %>
- <option value="<%= name %>"></option>
- <%
- rs.MoveNext
- loop
- rs.close
- set rs=nothing
- %>
- </select>
- </td>
- </tr>
- </table>
- <% End if%>
if i remove if condition then it is working fine, but when i insert if nothing is display
when i debug the code the condition is true than to the table with combo is not displayed.
is there any problem in if statement