Double Click a readOnly Textbox to make it editable?

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
 
A

Ashish M Bhonkiya

One of the options cud be to add a javascript attached to the textbox, for
the event "ondblclick"
 
J

Joyjit Mukherjee

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
 
P

parshuram

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

Members online

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top