M
Marc Wickens
Hi
I have noticed that the LinkButton creates a hyperklink to a javascript
location .e.g.
<a href="javascript:__dopostback"
This is bad for accessability because browsers without Javascript won't be
able to follow the links.
Where possible I have used normal links that change the query string of the
page, however some things, such as submitting forms are impossible.
So, my question is - is there a way (I'm sure there is, just not sure how)
of changing LinkButtons to standard buttons if javascipt is disabled?
I know that ASP.NET does make changes based on whether or not the client has
JavaScript support.
Both the Button and LinkButton implement IButtonControl, which have the
click event and text property.
This would idealy be s site wide solution, and would allow me to use
LinkButtons (which look a lot nicer than buttons) for most users, but if the
client doesn't support Javascript then normal Buttons would be displayed.
Thanks to anyone who may be able to help,
Marc
I have noticed that the LinkButton creates a hyperklink to a javascript
location .e.g.
<a href="javascript:__dopostback"
This is bad for accessability because browsers without Javascript won't be
able to follow the links.
Where possible I have used normal links that change the query string of the
page, however some things, such as submitting forms are impossible.
So, my question is - is there a way (I'm sure there is, just not sure how)
of changing LinkButtons to standard buttons if javascipt is disabled?
I know that ASP.NET does make changes based on whether or not the client has
JavaScript support.
Both the Button and LinkButton implement IButtonControl, which have the
click event and text property.
This would idealy be s site wide solution, and would allow me to use
LinkButtons (which look a lot nicer than buttons) for most users, but if the
client doesn't support Javascript then normal Buttons would be displayed.
Thanks to anyone who may be able to help,
Marc