简体   繁体   English

在C#中从Windows类库中的网站访问结果

[英]Accessing the result from website in windows class library in C#

I am having my partner website(App1) which is hosted in IIS. 我有在IIS中托管的合作伙伴网站(App1)。 It has a menu called SummaryReport (xxx.aspx) 它有一个名为SummaryReport(xxx.aspx)的菜单

In App1,the SummaryReport page contains Date calendar and Go button. 在App1中,SummaryReport页面包含Date日历和Go按钮。 When clicking that Go, the result set for the selected date will be displayed in the same page using display controls like DataGrid or gridview something. 单击“开始”时,将使用诸如DataGrid或gridview之类的显示控件在同一页面中显示所选日期的结果集。

Actually I am creating a class library in c# for another application(App2). 实际上,我正在c#中为另一个应用程序(App2)创建一个类库。 Now my aim is to get the result set from the xxx.aspx(App1) in my library and I will do further manipulation with result set data in my App2. 现在,我的目标是从库中的xxx.aspx(App1)获取结果集,我将对App2中的结果集数据进行进一步的处理。 I don't know how to get the result set from App1 in App2. 我不知道如何从App2中的App1获取结果集。 The only input I am having is URL of xxx.aspx page(App1 URL). 我唯一输入的是xxx.aspx页面的URL(App1 URL)。

(eg: http://xxxx/SampleWebsite/xxx.aspx ) (例如: http://xxxx/SampleWebsite/xxx.aspx

Kindly anyone provide me the idea to achieve this. 友善的人为我提供实现此目标的想法。 Thanks in Advance. 提前致谢。

我建议将App1中的处理逻辑放入类库中,然后您可以从同一个类库中调用它,也可以从App1中调用它,然后就可以在两个地方对结果集进行所需的操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM