In my master pages I have <form ... action='' ...>, in pre SP1, if I viewed the source the action attribute would be an empty string. In SP1 the action attribute is overridden ‘MyPage.aspx?MyParams’, unfortunately, this causes my postbacks to fail as I have additional pathinfo in the URL (ie. MyPage.aspx\CustomerData?MyParams). I have checked the action attribute in the OnLoad event and it is still blank at this time, so somewhere SP1 is overriding this :(.
Sorry, I just realized that part of my post was missing since I did not use the markdown correctly.
Great solution from MrJavaGuy but there is a typo in the code because pasting code in the box here doesn’t always work correctly. There is a duplication on the WriteAttribute method, corrected code is as follows –