• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 249
  • Last Modified:

ASP.Net Image alternate text

I have an asp.net page that displays a grid. For each record an image is shown based on the current status of the record. The status is a field in the table the grid is built from. I want the alternate text to display for the image based on the current status. So I have 10 status possibilities, 1-10. I want the text to change based on the status. 1 is open, 2 is working, 3 is returned, on down the line. What is the best way to do this?
0
dodgerfan
Asked:
dodgerfan
  • 2
1 Solution
 
nishant joshiTechnology Development ConsultantCommented:
you can write code for alt text in grid using eval(<%= ....%>) and create your own logic
0
 
dodgerfanAuthor Commented:
Well, this:
AlternateText='<%# Eval("StatusID") %>'

shows the number associated with the record for status. How can I get it to show the text associated with the number if the text does not exist as part of the datasource? Is there an example out there of doing that?
0
 
dodgerfanAuthor Commented:
got it, thanks.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now