ADO.NET Problem
I have a web-based form in ASP.NET that currently accesses a SQL 2000 database to show details of items. The items sometimes do not use all of the same columns though, and instead of listing the column data in an ASP.NET form with no data in a cell, I'd like to just skip displaying that cell in my page altogether. I have an ASP 3.0 version of this that works fine, but I can't get it working in ASP.NET. :( All I really need to know is how to do this in ASP.NET:
<%
If rsItems("ItemDescription") = "N/A" Then
Response.Write("")
Else
%>
<ENTER THE TABLE>
<% End If %>
If there isn't anything to display, I enter "N/A" in the database. Can anyone tell me how to just access the value of a single column in the current recordset to evaluate it as displayed above? The entire SQL statements are already configured and working fine, I just need this small addition.
Thanks!
|