Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can an ImageButton be a table cell background for a nav?

Thread Tools

Can an ImageButton be a table cell background for a nav?

Bruce W.1
Posts: n/a
I'm trying to put together a horizontal tab nav in a User Control, and I
want to have some mouseOver behavior. This could easily be done with
just CSS, however hyperlinking this way (client-side) would lose session
state, right? So I can't do this.

I was thinking that a mouseOver on the link text would just make it
bold, or change color.

I'd like each tab to be prettier than just a different table cell
background color, more like a manilla folder tab. That means an image
as the cell background.

An ImageButton would provide all the link functionality needed, except
without the client-side CSS mouseOver behavior.

The only way CSS updated text could appear on top of an ImageButton
would be if the ImageButton was a table cell background. But then the
ImageButton would not be clickable, right? It would lose the ability to
do a Response.Redirect or Server.Transfer in the code-behind.

Another option might be to skip the CSS updated text and just use an
ImageButton which had mouseOver behavior. Can an ImageButton have
client-side mouseOver behavior?

What's the best way to do a nice looking tab nav in a User Control?

Any suggestion on solving this dilemna would really be appreciated. Thanks.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to set cell background based on cell value when datagrid is displayed RJ ASP .Net Datagrid Control 1 02-17-2005 09:37 PM
How can I use onclick to change a table cell background color Michael Javascript 1 05-15-2004 04:16 PM
How do I have a table cell fetch another page to display within the cell? Phillip Roncoroni HTML 14 04-05-2004 05:58 PM
Can an ImageButton be added to a Calendar day Cell? Chuck Hartman ASP .Net 2 02-18-2004 04:25 PM
Problem with background color of table cell Thanks ASP .Net 1 02-08-2004 03:33 AM