Results 1 to 2 of 2

Thread: [2008] ImageField

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Jan 2007
    Posts
    307

    [2008] ImageField

    I have a gridview and i was gonna put a column with an image.
    If a bound value was = 1 then I have a certain image.

    However, if its any other number than I have a different image.

    There are two images in total.

    Would I use an imagefield for this? Wasnt sure how to put the condition in, never used one.

    Thanks

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: [2008] ImageField

    Use a TemplateField. Handle the conditional image display by handling the RowDataBound event of the GridView.

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