how to disable textbox?
how to disable text box after press enter some event(return in javasscript) occure ,then i need to disable textbox or hide on client side
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Apr 25, 2012, 3:47 AM
You can disable the control in the client side,
document.getElementById('txtbox').disabled = true;
You can hide the control in the client side,
document.getElementById('txtbox').style.display= 'none';
If you want to do it server side then write the text box change event and set the following,
txtName.Enabled = false;