内存中的页面源代码?? [英] Page Source Code In Memory??
问题描述
好的,这就是情况:
我想阅读当前正在执行的.aspx页面源代码来自内存
因为它正在执行所以我可以从页面中获取某些值(对于
示例,比如页面标题)。任何想法?
Chad
" Chad A. Beckner" <章********* @ ProspectiveLink.com>在消息中写道
新闻:Ol ************** @ TK2MSFTNGP10.phx.gbl ...好的,这里''情况:
我想阅读当前正在执行的.aspx页面源代码。来自
内存,因为它正在执行,所以我可以从页面中获取某些值(例如,对于
例如页面标题)。有什么想法吗?
Chad,我已经告诉过你了没有。源代码根本不在内存中。
它已经编译好了。
它不像你在客户端并且可以使用DOM。
-
John Saunders
johnwsaundersiii at hotmail
< blockquote>好的,好的,只想弄清楚不同的方法...... :)
我可以使用streamreader打开文件,将内容放入
字符串,并使用正则表达式,对吧?你有多少服务器负载
认为会增加?
Chad
" John Saunders" <乔************** @ notcoldmail.com>在消息中写道
news:%2 **************** @ TK2MSFTNGP11.phx.gbl ...
" Chad A. Beckner <章********* @ ProspectiveLink.com>在消息中写道
新闻:Ol ************** @ TK2MSFTNGP10.phx.gbl ...好的,这里的情况如下:
我想阅读当前正在执行的.aspx页面源代码。来自
内存因为它正在执行所以我可以从页面
中获取某些值(例如,说明页面标题)。有什么想法?
乍得,我已经告诉过你了不。源代码根本不在内存中。
它已经编译好了。
它不像你在客户端上就可以使用DOM。 /> -
John Saunders
johnwsaundersiii在hotmail
好的,好的,我只是在调查所有可能性。 :-)
文件阅读器增加多少开销?
Chad
" ; John Saunders <乔************** @ notcoldmail.com>在消息中写道
news:%2 **************** @ TK2MSFTNGP11.phx.gbl ..." Chad A. Beckner <章********* @ ProspectiveLink.com>在消息中写道
新闻:Ol ************** @ TK2MSFTNGP10.phx.gbl ...好的,这里的情况如下:
我想阅读当前正在执行的.aspx页面源代码。来自
内存因为它正在执行所以我可以从页面
中获取某些值(例如,说明页面标题)。有什么想法?
乍得,我已经告诉过你了不。源代码根本不在内存中。
它已经编译好了。
它不像你在客户端上就可以使用DOM。 /> -
John Saunders
johnwsaundersiii at hotmail
Ok, here''s the situation:
I want to read the currently executing .aspx page "source code" from memory
as it is executing so I can grab certain values from within the page (for
example, say the page title). Any ideas?
Chad
"Chad A. Beckner" <Ch*********@ProspectiveLink.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...Ok, here''s the situation:
I want to read the currently executing .aspx page "source code" from memory as it is executing so I can grab certain values from within the page (for
example, say the page title). Any ideas?
Chad, I''ve already told you "no". The source code is not in memory at all.
It will already have been compiled.
It''s not like you''re on the client and can use the DOM.
--
John Saunders
johnwsaundersiii at hotmail
Ok, ok, just trying to figure out different ways... :)
I can use a streamreader and open up the file, place the contents into a
string, and use a regular expression, right? How much server load do you
think that will add?
Chad
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl..."Chad A. Beckner" <Ch*********@ProspectiveLink.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...Ok, here''s the situation:
I want to read the currently executing .aspx page "source code" from
memoryas it is executing so I can grab certain values from within the page (for example, say the page title). Any ideas?
Chad, I''ve already told you "no". The source code is not in memory at all.
It will already have been compiled.
It''s not like you''re on the client and can use the DOM.
--
John Saunders
johnwsaundersiii at hotmail
Ok, ok, I was just looking into all possibilities. :-)
How much overhead would a file reader add?
Chad
"John Saunders" <jo**************@notcoldmail.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl..."Chad A. Beckner" <Ch*********@ProspectiveLink.com> wrote in message
news:Ol**************@TK2MSFTNGP10.phx.gbl...Ok, here''s the situation:
I want to read the currently executing .aspx page "source code" from
memoryas it is executing so I can grab certain values from within the page (for example, say the page title). Any ideas?
Chad, I''ve already told you "no". The source code is not in memory at all.
It will already have been compiled.
It''s not like you''re on the client and can use the DOM.
--
John Saunders
johnwsaundersiii at hotmail
这篇关于内存中的页面源代码??的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!