pratik
pratik

Reputation: 4489

__doPostBack won't work if JavaScript is disabled

If the JavaScript of browser is disabled then __dopostback won't work. I am looking for the alternative to this because I have radio button and drop down list controls in web page that should fire postback even if JS is disabled.

Upvotes: 0

Views: 349

Answers (1)

simonweijgers
simonweijgers

Reputation: 220

Autopostback cannot be made to work without javascript, as a workaround, you could put a button next to the radio button/drop down list only for those users with javascript disabled to manually trigger a post back:

<noscript><asp:Button ID="uxManualPostback" runat="server" Text="Go" /></noscript>

In the code behind (server side) you would then hook up the button's click event to do same thing the autopostback of the radio button/drop down list would have done.

Upvotes: 0

Related Questions