Loading ...

Showing image in details view

Who is online?  0 guests and 0 members
home  »  forums   »  asp.net topics   »  web forms / data controls   » Showing image in details view

Showing image in details view

Posts under the topic: Showing image in details view

Posted: 9/21/2011

Lurker 360  points  Lurker
  • Joined on: 6/5/2011
  • Posts: 51

I am using an ajax rating control. It inserts an int value between 0 and 5 into my DB.  I am using a details view to display my results.  The details view is displaying the int value. I want to replace it with an image(of how many stars).I have 5 images. I am lost.  Do I find a way to add a field in my table that inserts the url for the coresponding image? How would I do this in code behind?(C#) Or is there a way to "format" the details view to show the image that corresponds with the value? How would I do this?

 

thanks in advance!


Posted: 9/29/2011

Lurker 60  points  Lurker
  • Joined on: 9/28/2011
  • Posts: 8

Yes You can store the Url of the Particular Image and Image in the Other Folder...

and Set the Image control in the detail view for fetching the Image of the particular path..


Page 1 of 1 (2 items)