How can I select all txt in a textbox?

trend

Centurion
Joined
Oct 12, 2004
I have searched.. and found information like:

MS example

But... I cannot get

text1.selectall() to work.. vs.net interlines all of it.. and says:
C:\Inetpub\wwwroot\WebApplication1\login.aspx.vb(68): 'selectall' is not a member of 'System.Web.UI.WebControls.TextBox'.

I am using vb.net

any ideas?


thanks
Lee
 

PlausiblyDamp

Administrator
Joined
Sep 4, 2002
Location
Lancashire, UK
IIRC the Windows TextBox supports the .SelectAll() method while the ASP.Net version doesn't. To acheive the same end result in a web application you would need to use a client side technology like JavaScript.
 
Top Bottom