Click here to Skip to main content
15,911,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to get the value of textbox,div or label etc ..of forward page(page of any site) into the base page(my application page),


For exampe i opened a codeproject site from my aspx page now i want this 8,016,158 members and growing! (30,687 online) value into my aspx textbox.


Can any one tell me how to achieve this
Posted

1 solution

you have to use httpWebRequest and httpWebResponse classes for this. :)

firstly use these classes to make a http request to the server of this site and then captures the page generated from the server to your program.

now use Regex to extract your required text.
 
Share this answer
 
Comments
Christian Graus 11-Aug-11 3:44am    
Just to add, you would need to know the format of the page in question, and you'd do well to cache these values, as your page could time out waiting for the page you're calling.
Code_seeker_ 11-Aug-11 3:47am    
in this way i cant get exact value and i have to perform lot of string manipulations..
Harish Kumar Bansal 11-Aug-11 3:57am    
i am telling about Regular Expressions.
in this way, few string manipulation requires.
Code_seeker_ 11-Aug-11 4:02am    
ok i will try,tx

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