Click here to Skip to main content
15,881,281 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
<input type="radio" id="radiobutton1" runat="server" onclick="ToggleMobileControls()" />


There are some business validations that I perform after which i check my radiobutton to True using
VB
radiobutton1.Checked=True


What I have tried:

I have also put
<radiobutton1.Checked=True />
at the end of the PreRender() function just to be sure that I am doing it right. Even this didn't make the radiobutton1 checked. Any help will be appreciated. Thanks in advance.
Posted
Updated 16-Aug-20 5:36am
Comments
Sandeep Mewara 14-Aug-20 11:30am    
setting rb.Checked = true should do. What are you doing, share the entire code using 'Improve Quesiton' option.

it works plain simple: https://asp-net-example.blogspot.com/2009/03/how-to-unchecked-radiobutton.html

1 solution

onclick="ToggleMobileControls()"

There's no "()" in event handler method names.
 
Share this answer
 
Comments
Sandeep Mewara 16-Aug-20 12:16pm    
Thats the JavaScript event on a html control and thus correctly setup. Don't think this is the issue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900