473,385 Members | 1,766 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.

Selectall() on texbox

In windows forms
textbox1.focus()
textbox1.SelectAll()

makes the text in the textbox selected when the above is run

What is the ASP.NET version of the same task becuase Texboxes do not have
..SelectAll()

Thanks
Apr 20 '06 #1
1 1241
Client-side javascript call myForm.textbox1.select() will do the job.

Eliyahu

"Sean" <Se**@discussions.microsoft.com> wrote in message
news:68**********************************@microsof t.com...
In windows forms
textbox1.focus()
textbox1.SelectAll()

makes the text in the textbox selected when the above is run

What is the ASP.NET version of the same task becuase Texboxes do not have
.SelectAll()

Thanks

Apr 20 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Matt | last post by:
In ASP page, there is a "SELECT ALL" button, when user click it, it will select all checkboxes. I am not sure should I use client-side code to do that? the following is my approach but it didnt...
2
by: bullshark | last post by:
VSN03:C# Create a C# Windows Form project. Add two TextBox controls. From the Properties of each, add an Enter Event handler. In the generated Enter Event Handlers (textBox1_Enter &...
0
by: Krazitchek | last post by:
Hello, i have a textBox with textBox1.selectAll() on MouseDown event to select all te content when the mouse got the focus. If i click (with left button) on the right of the text in the...
10
by: Wayne Wengert | last post by:
In the GotFocus event for several text boxes I include code such as "txtMyTxtBox.SelectAll". When I tab from textbox to textbox the text in the textbox that got focus is selected as expected but if...
0
by: Shane | last post by:
I've modified the standard text box to change the background color on the "Enter" event and to change the color back to the original value on "Leave". I've also added a bunch of other methods and...
2
by: PR | last post by:
Hello, I have a bunch of textboxes on my form, and I would very much like it if their text could be automatically selected when each one is entered. I've tried code like this: Private Sub...
3
by: ProgrammingStudent | last post by:
I have one text box where I enter a number. I can either click the calculate button or use the accept property (enter) to perform the calculation and display the answer in a label. I use the...
1
by: Eek | last post by:
Hi everyone; I have a strange problem with a DataGridView bound to a BindingList. The grid is populated asynchronously by a thread which, when it completes, refreshes the grid by doing an Invoke...
1
by: NvrBst | last post by:
I have a ListView (VirtualMode) and I want to implement a SelectAll. --1st Atempt-- The standard for loop takes way to long: "for(int i = 0; i < listView1.VirtualListSize - 1; i++)...
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:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.