I am reworking some ui in an application written by freelance .Net developers from another country.
I am not going to go into how bad the code is and entangled the code with structure content and presentation are…
But one of the things I notice is that menu for accessing the parts of the app is made with Button controls that post to the server and return a different page. I would like to change the buttons to LinkControls are there any reasons that people might have done this ?
I notice that when I do change to to LinkButtons there is actually javascript that seems to trigger the post action. Any reasons or ways to avoid this ?
You could re-style the buttons to look like links, then you can maintain any server-side code, and not have to rely on javascript like the LinkButton does.
Of course if these buttons are simply used for navigation without any server side logic, then good old html links would do just fine…