如何使用C#在窗口应用程序中访问Webforms [英] how to access webforms in a window application with c#

查看:57
本文介绍了如何使用C#在窗口应用程序中访问Webforms的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想访问Windows应用程序中的Web表单而不访问Web服务.就像我的大学网站在其网站上声明结果一样,我想创建一个应用程序,用户可以使用该应用程序通过Internet连接在Windows应用程序中查看其结果.
通过输入他们的注册编号..
任何人都知道如何在c#中执行此操作.请告诉我..

i want to access webforms in windows application not accesing a webservice. like my university website declare result on their website i want to create a application by which user can see their result with windows application by using internet connection.
by entering their enrollment number..
anybody know how to do it in c# please tell me..

推荐答案

没有直接的方法.但是,可以使用HttpWebRequest/HttpWebResponse类从网页读取HTML输出,解析HTML并绑定所需的信息.
There isn''t a direct way to do it. However, you can use the HttpWebRequest/HttpWebResponse class to read the Html output from the webpage, parse the Html and rig the information you want.


这篇关于如何使用C#在窗口应用程序中访问Webforms的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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