ASP.NET敏捷性包|如何解析的网页。即服用后的参数?(ASP.NET Agility Pack | How to parse a web page. that is taking post parameters)

   IT问题网   2018-08-24 00:00:00

问 题

我想分析和网页需要post参数。就像这是我的情景。我必须解析某些搜索结果。但搜索参数发送后身体到该页面。

要分析搜索结果我不得不在post参数发送到该页面。我怎么能做到这一点敏捷包?

请帮我。

解决方案

是的,这是可能的,你可以使用html敏捷性包后的参数。对低于code一起来看看。

browsersession b =新browsersession();
b.get("http://www.skyline-eng.com/");
b.formelements ["navigationtypeid"] = rblcategory.selecteditem.value;
b.formelements ["navigationseriesid"] = boxitem.value;
的htmldocument docskyline = b.post("http://www.skyline-eng.com/");
 

下面navigationtypeid和navigationseriesid是post参数。这样使用,同时继续使用伟大的工具htmlagility包分析数据。

标签:敏捷性如何解析网页服用参数



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

在收集递归断言(recursive assert on collection)

problem i would like a test like this one: [test] public ...

使用带的DBNull.Value的SqlParameter不知道的SqlDbType?(Using DBNull.Value with SqlParameter without knowing sqlDbType)

problem i'm using a sqlparameter to pass in null values t ...

如何显示C#源$ C $从外部文件c?(How to display C# source code from external file)

problem for my project i'd like to display c# ...

如何分割文本文件分割成多个文件?(How to split a text file into multiple files)

problem in c#, what is the most efficient met ...

JConsole的等价物净?(jconsole equivalent for .Net)

problem i'm looking for a dll you could link to, that wil ...

TextWriterTraceListener会不工作(TextWriterTraceListener does not work)

problem config file: lt;system.diagnosticsgt; lt;tracegt ...

WPF - 检测鼠标按下了设定的时间段(WPF - Detect mouse down for a set period of time)

problem what's the best way to detect when a mouse button ...

写在C#中一个全球性的自定义事件(Writing a global custom event in C#)

problem i have a winform winform1 and 2 user ...

中的XMLSerializer的构造函数第一次机会异常发生(First chance exception happened in the constructor of XMLSerializer)

problem possible duplicate: xmlserializer gi ...

有一个在EF CTP没有关键属性5(There is no Key attribute in EF CTP 5)

problem according to the blog post here data annotations ...

在运行评估前pression(Evaluating Expression at Runtime)

problem i have a c# console application project. i have ...

code下载PDF文件在C#(code to download PDF file in C#)

problem i have problem in downloading pdf files. whereas ...

是否有意义赶上ThreadAbortException和执行不采取行动?(Does it make sense to catch ThreadAbortException and perform no action)

problem catch (threadabortexception) { } catch (exception ...

如果是.NET对象= NULL游戏垃圾回收?请问范围有关系吗?(When is .net object = null game for garbage collection Does scope matter)

problem folks, if i set a large object to .net to null i ...

CLR 2.0 VS 4.0的性能?(CLR 2.0 vs 4.0 performance)

problem will a .net program compiled for clr 2.0 run fast ...

Windows服务部署(Windows Service Deployment)

problem i am currently deploying my windows services manu ...

C#获取路径/文件名由句柄(HWND),32位和64位(C# Get Path/Filename by Handle (hWnd) 32 and 64bit)

problem i got the following code to get path/ ...

C#模拟VolumeMute preSS(C# Simulate VolumeMute press)

problem i got the following code to simulate volumemute k ...

最简单的方法来删除对象与实体框架4(Simplest Way to Delete Object with Entity Framework 4)

problem ack! i'm new to entity framework and am trying to ...

错误:使用未分配的局部变量(字符串数组)(ERROR: use of unassigned local variable (for string array))

problem i am reading connection strings from my app.confi ...