Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postback with radio button

Status
Not open for further replies.

dudleys

Technical User
Apr 28, 2005
31
AU
Hi,

I have a page with some radio buttons on it. They are all have runat=server properties. I have code that runs when one of them is clicked/checked on CheckChanged.

My problem is that I want to change which radio button is checked in client script, but that doesn't force a postback to the server to run my server code.

How can I force a postback when user clicks the button or i set it on script.

What I have tried is calling this function that asp.net generates.

__doPostBack('CtlMugImage1$optImgText','');

Thanks

 
Set AutoPostBack = false on the radio button. In javascript you will have to call a form.submit()
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top