Results 1 to 4 of 4

Thread: display different value based on repeater value [RESOLVED]

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Minnesota
    Posts
    830

    display different value based on repeater value [RESOLVED]

    I am using a repeater in asp.net to display some data. One of my fields is a 0 or 1 value. If a 0 is the value I want to display 'NO' and 1 would display 'YES'.

    Is this possible with a repeater?

    My code is below and field RA_ON is the field that returns 0 or 1 :
    VB Code:
    1. .......
    2. <ASP:Repeater runat="server" DataSource='<%# dsFullList.DefaultView %>'>
    3. <ItemTemplate>
    4. <tr>
    5.  <td><%# dsFullList.FieldValue("ID", Container) %> </td>
    6.  <td><%# dsFullList.FieldValue("Name", Container) %> </td>
    7.  <td><%# dsFullList.FieldValue("RA_ON", Container) %> </td>
    8.  <td><%# dsFullList.FieldValue("ENTRY_DT", Container) %> </td>
    9. </tr>
    10. </ItemTemplate>
    11. </ASP:Repeater>
    12. .....
    Last edited by lleemon; Jun 18th, 2004 at 02:32 PM.

Posting Permissions

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



Click Here to Expand Forum to Full Width