屏幕刮擦:自动设置控制值 [英] Screen Scraping : Automatically set the control values

查看:100
本文介绍了屏幕刮擦:自动设置控制值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





有谁能告诉我如何进行屏幕抓取?



我有像我有内联网应用程序的情况该页面包含2个文本框和1个按钮。我需要实现一个应用程序,比如必须自动设置文本框中的值,需要点击asp.net中的按钮。



我不知道是否它是否是屏幕刮擦。或者任何人都可以告诉我如何在asp.net和c#中实现这个。



谢谢

Kishore

Hi,

Can anybody tell me how to do the screen scraping?

I have a scenario like i have intranet app the page contains 2 textboxes and 1 button. I need to implement a app like have to set the values in the textboxes automatically and need to click on the button in asp.net.

I don't know whether it is screen scraping or not. Or else can anybody give me an idea how to implement this in asp.net and c#.

Thanks
Kishore

推荐答案

你可以遍历网页上的所有控件



例如

You can loop through all controls on the web page

For e.g.
foreach(Control ctrl in this.Controls)
 { 
   if (ctrl is TextBox)
   {
     //Set value here
   ]
 }


这篇关于屏幕刮擦:自动设置控制值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆