oops, looks like the above solution is not exactly what you need...
but you have everything in above solution to create yours :)
Main Topics
Browse All TopicsI have an ASP.NET ImageButton control and it has 3 states ( a,b and c) and is used as a tab button... the tab button can be unselected (a), moused over (b) and selected (c)...
State a: normal image
State b: mouse over image
State c: image clicked
THe problem is that wwhen the image is clicked, the OnMouseOut needs to show a different image then when the image is in the normal state...
How can this be done from code behind?
VS2008, VB or CS, ASP.NET 3.5
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
The best you're going to be able to do is one of the following:
1. Use AJAX to update the button dynamically (kind of overkill)
2. Use JavaScript, totally on the client side (easiest, but lacks some run-time flexibility)
3. Use a combination of codebehind and jQuery to achieve the desired effect (I have no experience here)
4. Use a mix of codebehind and JavaScript to essentially use JavaScript-only at run-time but allow you to determine what you want to do programmatically at run-time (maybe at 'render-time' is the best way of putting it)
I suggest you use #4, where you'll code what is essentially 'normal' JavaScript, but it is not actually 'written' until the page is rendered and where/when you intended. So, for example, you can still use a database record to determine what you want those 3 images should be.
Incidently, you can also do this for more extensive use... so for instance, if I needed to add a function for buttons in a GridView to be able to show a JavaScript dialog to confirm a Delete operation request then this is how I'd do it. At the point in the Page Lifecycle where the button needs to be rendered for the first time, using the ClientScript.RegisterClien
But to answer your question directly...
Business Accounts
Answer for Membership
by: HainKurtPosted on 2009-09-15 at 13:32:45ID: 25339105
here is a working sample...
Select allOpen in new window