Pages

Thursday, November 28, 2013

The .NET AutoPostBack feature may not work for all users

The TextBox, CheckBox, RadioButton, and similar controls for ASP .NET Web Forms expose a property called AutoPostBack. If set to True, then any change to the state of the control triggers a postback to the server for some kind of programmatic action. This is all well and good, except for the fact that this functionality is implemented in client-side JavaScript. If users have disabled client-side script from executing, your code will fail unexpectedly. It's therefore not a particularly good idea to rely on this feature unless you warn your users not to disable the exëcutíon of client-side script.


No comments:

Post a Comment

Note: Only a member of this blog may post a comment.