Click here to Skip to main content
15,888,579 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi there i have got a input radio button with i use for client side validation
HTML
<input type="radio" id="rdoStoDel" name="options" value="Store"  önchange="setShemp(false)" />

but i got one condition root where i want to display the control rdoStoDel but it his be enable=false or ready only mode i want to set this one from the code behind is there a way i can set this appreciate all your help
Posted
Updated 3-Jun-13 2:06am
v2
Comments
Sunasara Imdadhusen 3-Jun-13 8:07am    
make your input box to runat=server then you can access from code behind
Rockstar_ 3-Jun-13 8:11am    
Write javacscript code to disable the radio button...

function somename()
{
var name=document.getelementByID('controlaname').value;
name.attr('disabled','disabled');

}

1 solution

If you want to access any control from server side scripting, this needs to be server side control.

Make your radio button server control by adding runat=server to its declaration and then you can access it from server as well as from client scripting.

Hope this help you
 
Share this answer
 

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