你如何使用mshtml DOM对象来抓取渲染的asp.net页面? [英] how can you use mshtml DOM object to grab rendered asp.net page?

查看:58
本文介绍了你如何使用mshtml DOM对象来抓取渲染的asp.net页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道如何使用MSHTML从html网页中获取innerhtml,但

如果我想查看渲染的aspx页面的元素怎么办?使用MSHTML DOM对象有没有

方法呢?


谢谢,


Randall Arnold

解决方案

" One"另一种方法是使用http处理程序。这个例子

将让你有一个良好的开端。

http://www.eggheadcafe.com/articles/hijacksession.asp


-

Robbe Morris - 2004/2005 Microsoft MVP C#
http:// www .eggheadcafe.com / forums / merit.asp


" Randall Arnold" < RA ************ @ nokia.com>在留言中写道

news:uG ************** @ tk2msftngp13.phx.gbl ...

我知道怎么用MSHTML从html网页中获取innerhtml,但是如果我想查看渲染的aspx页面的元素会怎么样?有没有使用MSHTML DOM对象的方法?

谢谢,

Randall Arnold



谢谢Robbe。 C#让这个VB开发人员头疼,我显然已经基于我到目前为止所看到的内容而退出了我的联盟
,但我会看到我是否可以获得

你写得好的文章中可以使用的任何东西。


当我开始时,我觉得这很简单......小男孩......: (
Randall


Robbe Morris [C#MVP]< in ** @ eggheadcafe.com>写在留言

新闻:eU ************* @ TK2MSFTNGP15.phx.gbl ...

一个替代方案是使用http处理器。这个例子将会让你有一个良好的开端。

http://www.eggheadcafe.com/articles/hijacksession.asp

- Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.eggheadcafe.com/forums/merit.as p


" Randall Arnold" < RA ************ @ nokia.com>在消息中写道
新闻:uG ************** @ tk2msftngp13.phx.gbl ...

我知道如何使用MSHTML抓住来自html网页的innerhtml,但是如果我想查看渲染的aspx页面的元素怎么办?有没有使用MSHTML DOM对象的方法?

谢谢,

Randall Arnold




Robbe Morris [C#MVP]写道:

" One"另一种方法是使用http处理程序。这个例子将让你有一个良好的开端。

http://www.eggheadcafe.com/articles/hijacksession.asp




更好的选择是使用响应过滤器。

http://weblogs.asp.net/despos/archiv...01/145436.aspx


-

吉姆柴郡

================================

博客: http://blogs.msdn.com/jamesche


最新条目:深入研究对象

描述使用调试器挖掘

内存使用情况的细节。


I know how to use MSHTML to grab the innerhtml from an html web page, but
what if I want to look at elements of a rendered aspx page? Is there any
way to do this using the MSHTML DOM object?

Thanks,

Randall Arnold

解决方案

"One" alternative is to use an http handler. This example
will get you off to a good start.

http://www.eggheadcafe.com/articles/hijacksession.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.eggheadcafe.com/forums/merit.asp

"Randall Arnold" <ra************@nokia.com> wrote in message
news:uG**************@tk2msftngp13.phx.gbl...

I know how to use MSHTML to grab the innerhtml from an html web page, but
what if I want to look at elements of a rendered aspx page? Is there any
way to do this using the MSHTML DOM object?

Thanks,

Randall Arnold



Thanks Robbe. C# makes this VB developer''s head spin, and I''m obviously out
of my league based on what I''ve perused so far, but I''ll see if I can get
anything useable out of your well-written article.

I thought this was going to be simple when I started... hoo boy... : (

Randall

"Robbe Morris [C# MVP]" <in**@eggheadcafe.com> wrote in message
news:eU*************@TK2MSFTNGP15.phx.gbl...

"One" alternative is to use an http handler. This example
will get you off to a good start.

http://www.eggheadcafe.com/articles/hijacksession.asp

--
Robbe Morris - 2004/2005 Microsoft MVP C#
http://www.eggheadcafe.com/forums/merit.asp

"Randall Arnold" <ra************@nokia.com> wrote in message
news:uG**************@tk2msftngp13.phx.gbl...

I know how to use MSHTML to grab the innerhtml from an html web page, but
what if I want to look at elements of a rendered aspx page? Is there any
way to do this using the MSHTML DOM object?

Thanks,

Randall Arnold




Robbe Morris [C# MVP] wrote:

"One" alternative is to use an http handler. This example
will get you off to a good start.

http://www.eggheadcafe.com/articles/hijacksession.asp



A better choice would be to use a Response filter.

http://weblogs.asp.net/despos/archiv...01/145436.aspx

--
Jim Cheshire
================================
Blog: http://blogs.msdn.com/jamesche

Latest entry: Digging into Objects
Describes the details of digging into
memory usage with the debugger.


这篇关于你如何使用mshtml DOM对象来抓取渲染的asp.net页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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