ASP.NET: asp:LinkButton with Javascript disabled? -


I want to use a asp: linkButton because it looks like a link , Yet the server-side click handler.

But the web server is unable to detect whether Javascript is disabled on the client or not, and still works which does not present in a system.

Is this a link that looks like a link, but can be server-side onclick event handler?


Answer

No answer, but there are some alternative remedies below. Non-zero Up-Voted was accepted

You can use a button style to look at CSS like a link, but it Based on CSS implementation, there will be a very dependent browser.


Edit: I feel compelled to complete my answer because it has been accepted.

A asp: linkbutton sends an HTML link, and it can not on a web page; But can only get request to work around this MS to post an action posting to use javascript. This is not possible, though Javascript is disabled.

asp: buttons and asp: ImageButton are separate by posting on the web page (or by the form attributes, using the actual HTML form elements Received) HTML form, then this JS will work without interference.

Some browsers may allow the CSS style to look like a link to a button, and in this way it can be used to work around the problem.


Comments