By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,920 Members | 1,660 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,920 IT Pros & Developers. It's quick & easy.

Double Click a readOnly Textbox to make it editable?

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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

"Angela Chen" <an******@verizon.net> wrote in message
news:60Qsd.326$x26.24@trndny03...
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

Nov 19 '05 #2

P: n/a
One of the options cud be to add a javascript attached to the textbox, for
the event "ondblclick"

--
Regards
Ashish M Bhonkiya
"Angela Chen" <an******@verizon.net> wrote in message
news:60Qsd.326$x26.24@trndny03...
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

Nov 19 '05 #3

P: n/a
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

"Angela Chen" <an******@verizon.net> wrote in message
news:60Qsd.326$x26.24@trndny03...
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

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.