Click here to Skip to main content
15,924,318 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Grateful if u can let me know :
how to enable/disable the contols like textbox , rediobutton etc in ASP.Net.

I tried using the below the two commands , but it is not working

document.getElementById('ctl00_ContentPlaceHolder1_txtBankName').enabled=false;

document.getElementById("<%txtBankNam%>").enabled=false;


Thanx
Posted

1 solution

Try:
JavaScript
document.getElementById('ctl00_ContentPlaceHolder1_txtBankName').disabled=true;
document.getElementById("<%txtBankNam%>").disabled=true;
 
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