Data Presentation in ASP.NET

aldetira76

New Member
I am attempting to display a different information set based on a result returned from the db. For instance, when I look at the db field "subject" if I find "I'm having problems placing an order" I would show offer code, credit card, etc whereas this wouldn't be displayed if the subject was something other than this. Basically in normal ASP I would do something as follows:<BR><%<BR>if objRS("subject")="I''m having problems placing an order" Then<BR>%><BR>Display Order Information...<BR><%<BR>else<BR>%><BR>Don't Display Order Information<BR><%<BR>end if<BR>%><BR>Any thoughts on how to accomplish this in ASP.NET? I thought maybe templates would be the way to go, but I have yet to find a good example that is similar to what I'm looking to accomplish. Thanks-Mark,<BR><BR>I have used this a number of times<BR>Have a grid, a datalist, repeator, table, whatever for order information.<BR>Once you have queried the database, check the return value, and make the datalist,etc invisible (ie, set visible to false)
 
Back
Top