Kev said:
How do I programmatically remove the javascript postback functionality
from an ASP.Net 1.1 website (and keep my site working?)
I understand this has been done before.
My customer would like to achieve accessibility standards, so this is
quite an issue.
It can be done, but it's not trivial. As another poster has mentioned,
ASP.NET relies heavilly on JavaScript for its postback mechanism. If
you want to remove reliance on JavaScript, you won't be able to use any
of the features that make ASP.NET so quick to develop in. In short,
you'll be going back to basics.
All your server interaction will need to be in the form of Submit
buttons and anchor tags. In the Page_Load, you'll be doing a lot more
work in the 'if (IsPostback)' block. Submit buttons announce that
they've been clicked in the Forms collection, so you'll be sniffing
that and deciding what to do. For simple requests, you'll be packing
anchor hrefs with lots of information before rendering them.
You'll have to do without any asp:whatever tags, and any onServerClick
event handlers. You can still use runat=server to populate your page
and keep your data alive across postbacks, but you'll have to dissect
those postbacks by hand.
Good Luck!
Jason Kester
Expat Software Consulting Services
http://www.expatsoftware.com/