Link to home
Start Free TrialLog in
Avatar of dodgerfan
dodgerfanFlag for United States of America

asked on

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?
ASKER CERTIFIED SOLUTION
Avatar of nishant joshi
nishant joshi
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dodgerfan

ASKER

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?
got it, thanks.