Solved

ASP.Net Image alternate text

Posted on 2012-04-12
3
231 Views
Last Modified: 2012-04-12
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
Comment
Question by:dodgerfan
  • 2
3 Comments
 
LVL 14

Accepted Solution

by:
nishant joshi earned 500 total points
ID: 37839114
you can write code for alt text in grid using eval(<%= ....%>) and create your own logic
0
 

Author Comment

by:dodgerfan
ID: 37839229
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
 

Author Closing Comment

by:dodgerfan
ID: 37839592
got it, thanks.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now