473,385 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Double Click a readOnly Textbox to make it editable?

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
3 5271
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: pv_kannan | last post by:
Hello, I am stuck with a problem trying to mimic the behavior of a Windows Forms Readonly textbox in HMTL/ASP.NET. Basically, I would like the text to be readonly and overflow the textbox...
3
by: Wajih-ur-Rehman | last post by:
I am developing a C# app. I want to do something when someone double clicks on a combo box. But this event never fires. Any suggestions? Thanx!
5
by: Francois Searle | last post by:
Hi I have a datagrid that is popolated by a search result. I would then like to double click on a row to open the record in a new form. The double click doesn't seem to "fire"? I am relively...
6
by: Sakharam Phapale | last post by:
Hi All, How to capture Mouse Single click and mouse double click event on Commnad Button. I am doing as follows. Private Sub Button1_MouseUp(ByVal sender As Object, ByVal e As...
3
by: Techsatish | last post by:
how to make a mouseup event called only once during a double click event? here double click is made on a tree node in a tree control. I have the code inside mouseup event....in runtime the...
0
by: Paul DeWitt | last post by:
I have a textbox on a Windows Form. I am wanting to display a popup form to request/validate info if the user clicks the textbox and have a different form (to delete data) load if the user either...
1
by: Ian | last post by:
I have an ASP.NET 2.0 page with a readonly textbox on it who's value is populated by a popup child window used for selecting from a list. I use a javascript function to pass the data back to the...
6
by: Jim Devenish | last post by:
I have an unbound form that displays all the days of the year as a calendar. It has 12 rows of text boxes with either 29,30 or 31 in each row. Text box names are of the form: display_01_01,...
15
by: Martin Lang | last post by:
Hi All, Thanks for reading this :) I have a form A that consists of a main form A and a sub form A. In sub form A, I have a field which I can double click. Then, Main form B opens up with a...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.