Thursday, March 19, 2009

Be Careful Using OnClientClick with ASP.NET Web Controls

When using the OnClientClick property of Web Controls in ASP.NET, especially when the Web Controls involved have their CausesValidation property set to true, validation and related post-backs will be ugly and not function correctly. OnClientClick seems to work well, however, with Web Controls whose CausesValidation property is set to false.

No comments: