Link to home
Start Free TrialLog in
Avatar of Blowfelt82
Blowfelt82

asked on

Format login control button.

I have the following code to make a button...


<a class="button" href="#" onclick="this.blur();"><span>Login</span></a>

The CSS on this element styles my button how I would like it (but note that I am not using an ASP.NET/HTML button control). I have used this styling throughout my website. I have placed a login control onto my page but the styling of the 'Login' button is useless and I would like to make this in line with the rest of the buttons on my site. How can I adapt the line above to submit the login control?
Avatar of hongjun
hongjun
Flag of Singapore image

Try using the CssClass attribute.
<asp:Button id="btnLogin" runat="server" CssClass="button"></asp:Button>

Open in new window

Avatar of Blowfelt82
Blowfelt82

ASKER

The CSS class I use is for an anchor element not a button element so I dont think this would work.
Have you tried? Styles work for all controls.
It depends on how you style it.
Just tried it, but didnt work... I dont think the CSS properties I use can be applied to buttons
Use <asp:LinkButton...>  instead.
Ok, but how would I get the LinkButton to submit a login form?
SOLUTION
Avatar of Nasir Razzaq
Nasir Razzaq
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
This question has been classified as abandoned and is being closed as part of the Cleanup Program.  See my comment at the end of the question for more details.