如何获取前页文本框的值到被调用页中 [英] How to get the value of textbox of forward page in to called page
本文介绍了如何获取前页文本框的值到被调用页中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我想将正向页面(任何站点的页面)的文本框,div或标签等..的值获取到基础页面(我的应用程序页面)中,
例如,我现在从我的aspx页面打开了一个codeproject网站,我希望这个 8,016,158名成员不断增长! (在线30,687)值输入到我的aspx文本框中.
谁能告诉我如何实现这个
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
推荐答案
您必须为此使用 httpWebRequest 和 httpWebResponse 类. :)
首先使用这些类向该站点的服务器发出http请求,然后将服务器生成的页面捕获到您的程序中.
现在使用 Regex 提取所需的文本.
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.
这篇关于如何获取前页文本框的值到被调用页中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文