Selectall() on texbox

Discussion in 'ASP .Net' started by =?Utf-8?B?U2Vhbg==?=, Apr 20, 2006.

  1. 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
     
    =?Utf-8?B?U2Vhbg==?=, Apr 20, 2006
    #1
    1. Advertising

  2. Client-side javascript call myForm.textbox1.select() will do the job.

    Eliyahu

    "Sean" <> wrote in message
    news:...
    > 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
     
    Eliyahu Goldin, Apr 20, 2006
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gandalf
    Replies:
    12
    Views:
    572
    Gandalf
    Aug 1, 2003
  2. Rob T

    Hidden Texbox

    Rob T, Jun 10, 2004, in forum: ASP .Net
    Replies:
    5
    Views:
    10,582
    Sharon Tal
    Jun 10, 2004
  3. David

    width of texbox in editItem

    David, Jan 25, 2005, in forum: ASP .Net
    Replies:
    0
    Views:
    376
    David
    Jan 25, 2005
  4. =?Utf-8?B?RGVuaXNl?=

    Updating a texbox with Javascript

    =?Utf-8?B?RGVuaXNl?=, Mar 1, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    540
    =?Utf-8?B?RGVuaXNl?=
    Mar 1, 2005
  5. Ken

    txtBox.SelectAll() equivalent

    Ken, Nov 1, 2004, in forum: ASP .Net Web Controls
    Replies:
    3
    Views:
    137
    Scott M.
    Nov 2, 2004
Loading...

Share This Page