Double Click a readOnly Textbox to make it editable?

  • Thread starter Thread starter Angela Chen
  • Start date Start date
A

Angela Chen

Hi,
I have a readOnly textbox. I want to be able to double click it to make it
editable?
How to implement it?\
Thanks a lot
 
One of the options cud be to add a javascript attached to the textbox, for
the event "ondblclick"
 
Hi,

there's no Click or Double Click event there for a Web textbox, only the
default TextChanged event is there and that too will fire if the textbox is
not readonly. So, try some other options out, i mean, trap some other event
to occur for some other controls to make the textbox editable.

HTH
Joyjit
 
you can enable the textbox at the client site using javascript, like this :

<script language="javascript">
function SetWriteAble()
{
document.getElementById('TextBox1').readOnly='';
}
</script>

on dbclick of texbox u cud bind this function.
HTH
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top