underline accesskey in ASP.NET

Soldato
Joined
1 Feb 2006
Posts
8,188
hi guys, been through loads of sites and cannot find out how to do this.

I am looking to underline the first letter of an asp:button control which has been assigned an accesskey. If it was a normal button i could add a span between the opening and closing tags but this is an asp:button ending with a /> and you cannot separate the start and end tags.

The code is like this:
Code:
<asp:button text="Save" Accesskey="S" .../>

As the button label text is coming from the text attribute i cannot add css styling to this or anything. I have tried settings a cssclass with :first-letter styling to underline but this doesn't work either.

I have also tried putting text between the open and closing tags but it doesn't work i.e.
Code:
<asp:button text="Save" Accesskey="S" ...>Text here</asp:button>

Anyone got any ideas? Thanks
 
still struggling to find a solution to this one. Anyone know if it would be possible with javascript?

Like I said it can be done using a <button> tag but can't find a solution when using <asp:Button>
 
Back
Top Bottom