Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Selectall() on texbox

Reply
Thread Tools

Selectall() on texbox

 
 
=?Utf-8?B?U2Vhbg==?=
Guest
Posts: n/a
 
      04-20-2006
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
 
Reply With Quote
 
 
 
 
Eliyahu Goldin
Guest
Posts: n/a
 
      04-20-2006
Client-side javascript call myForm.textbox1.select() will do the job.

Eliyahu

"Sean" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to access the value of a Texbox column(Template field) in gridview Yog ASP .Net 0 03-23-2006 04:04 PM
Updating a texbox with Javascript =?Utf-8?B?RGVuaXNl?= ASP .Net 3 03-01-2005 09:59 PM
width of texbox in editItem David ASP .Net 0 01-25-2005 06:02 PM
Hidden Texbox Rob T ASP .Net 5 06-10-2004 05:41 PM
Programmatically change width of texbox? Gandalf ASP .Net 12 08-01-2003 12:44 AM



Advertisments