Wednesday, November 5, 2008

asp.net hates < script />

I just discovered an unfortunate bug(?) in asp.net.

With:

< source="scriptfile.js">


My page always generates an Event Validation exception on postback.
Simply changing it to:

< source="scriptfile.js"> <>


eliminates the exception without having to disable Event Validation

No comments: