Perform ASP.NET Postback using JQuery
Came across a situation where I needed to disable the ASP.NET button using JQuery when the user clicks on the button, this is so we stop the user from clicking the button twice while the page is doing a postback. Firstly, add the following JQuery/Javascript code: <script> function autoSubmit() { <%= ClientScript.GetPostBackEventReference(btnSaveChanges, "") %>; } [...]
W3C Validation and ASP.NET ViewState
The problem I came across a very interesting point about validating XHTML pages using W3C XHTML Strict and ViewState. By default ASP.NET ViewState adds a number of hidden fields to handle the postback of ASP.NET pages, control state and control event validation. See example below. <input type=”hidden” name=”__VIEWSTATE” id=”__VIEWSTATE” value=”” /> When validating web pages [...]


