Solved

ASP.Net Image alternate text

Posted on 2012-04-12
3
236 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Salesforce Made Easy to Use

On-screen guidance at the moment of need enables you & your employees to focus on the core, you can now boost your adoption rates swiftly and simply with one easy tool.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
reading excel file in .net 2 46
why JSON Array data not binding on Model ASP.NET ? 1 43
What is GIS method of Geometry data type? 6 36
Javascript function 3 22
I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Suggested Courses

752 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