Data Presentation in ASP.NET

Results 1 to 2 of 2

Thread: Data Presentation in ASP.NET

  1. #1
    Join Date
    Dec 1969

    Default Data Presentation in ASP.NET

    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&#039;m having problems placing an order" I would show offer code, credit card, etc whereas this wouldn&#039;t be displayed if the subject was something other than this. Basically in normal ASP I would do something as follows:<BR>&#060;%<BR>if objRS("subject")="I&#039;&#039;m having problems placing an order" Then<BR>%&#062;<BR>Display Order Information...<BR>&#060;%<BR>else<BR>%&#062;<BR>Do n&#039;t Display Order Information<BR>&#060;%<BR>end if<BR>%&#062;<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&#039;m looking to accomplish. Thanks-

  2. #2
    Join Date
    Dec 1969

    Default RE: Data Presentation in ASP.NET

    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)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts