Click here to Skip to main content
15,920,005 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have text on webpage .I have to select all text .

Please tel me code under button 'Select All' so that al text got selected
Posted
Comments
bbirajdar 25-Feb-13 4:50am    
Ctrl + A
Prakash Thirumoorthy 25-Feb-13 4:51am    
coding language is c# or vb?

http://stackoverflow.com/questions/12183544/c-sharp-read-text-from-website-not-the-source-code[^][]
C#
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("http://www.google.com");
            HttpWebResponse response = (HttpWebResponse)request.GetResponse();
            StreamReader sReader = new StreamReader(response.GetResponseStream());
            string strng = sReader.ReadToEnd();
 
Share this answer
 
v2
<form......>

<input type="button" value="Highlight Text" onClick="javascript:this.form.text_area.focus();this.form.text_area.select();">



</form>
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900