如何获取生成的aspx页面的大小 [英] how to get size of generated aspx page
本文介绍了如何获取生成的aspx页面的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要生成的aspx页面的页面大小,如何以及何时以编程方式获取此
信息
I need page size of generated aspx page, how and when I can get this
information programmatically
推荐答案
这里有一个例子:
http://www.quirksmode .org / js / filesize.html
但它会在IE中运行而不是FireFox。如果你试图在同一页面上通过
服务器端代码执行此操作,那将是一个自相矛盾的无限循环,因为代码会在发送给客户后,需要检查
页面的最终大小,而不是在生成期间。
HTH >
-Altaf
--------------------------- -------------------------------------------------- ---
所有闪闪发光的折射率都很高。
www.mendhak.com
TomislaW <到********* @ hotmail.com>在留言中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
There is an example given here:
http://www.quirksmode.org/js/filesize.html
But it''ll work in IE and not FireFox. If you''re trying to do this through
server side code on the same page, that''d be something of a paradoxical
infinite loop, since the code would need to check for the final size of the
page after it''s been sent to the client, and not during generation.
HTH
-Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"TomislaW" <to*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
我需要生成的aspx页面的页面大小,如何以及何时以编程方式获取此信息
I need page size of generated aspx page, how and when I can get this
information programmatically
re:
如果你试图通过服务器端代码执行此操作
那就是我们在这个新闻组中所做的,Altaf。
未修改的客户端解决方案
在ASP.NET页面中使用的兴趣不大。
如果你有解决方案对于ASP.NET,请发布它。
Juan T. Llibre,ASP.NET MVP
ASP.NET常见问题: http://asp.net.do/faq/
Foros de ASP。 NET en Espa?ol: http://asp.net.do/foros/
====================================== >
SM Altaf [MVP]" < SM ***** @ PLEASEDONTSPAMMEmsn.com>在消息中写道
news:uA ************** @ tk2msftngp13.phx.gbl ...这里有一个例子:
http://www.quirksmode.org/js/filesize.html
但它会在IE中运行而不是FireFox。如果你试图通过同一页面上的服务器端代码执行此操作,那将是一个矛盾的无限循环,因为
代码需要检查最终的大小将页面发送给
客户后,而不是在发电过程中。
HTH
-Altaf
- -------------------------------------------------- -----------------------------
所有那些闪闪发光的折射率都很高。
www.mendhak.com
TomislaW <到********* @ hotmail.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
If you''re trying to do this through server side code
That''s what we do in this newsgroup, Altaf.
Client-side solutions which have not been modifed
for use within an ASP.NET page are of little interest.
If you have a solution for ASP.NET, please post it.
Juan T. Llibre, ASP.NET MVP
ASP.NET FAQ : http://asp.net.do/faq/
Foros de ASP.NET en Espa?ol : http://asp.net.do/foros/
======================================
"S.M. Altaf [MVP]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl... There is an example given here:
http://www.quirksmode.org/js/filesize.html
But it''ll work in IE and not FireFox. If you''re trying to do this through server side
code on the same page, that''d be something of a paradoxical infinite loop, since the
code would need to check for the final size of the page after it''s been sent to the
client, and not during generation.
HTH
-Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"TomislaW" <to*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
我需要生成的页面大小aspx页面,如何以及何时以编程方式获取此信息
I need page size of generated aspx page, how and when I can get this information
programmatically
我需要这个在服务器端
你说无法计算大小
Response.OutputStream!?
" SM Altaf [MVP]" < SM ***** @ PLEASEDONTSPAMMEmsn.com>在消息中写道
news:uA ************** @ tk2msftngp13.phx.gbl ...
i need this on server side
you say that is not possible to calculate size of
Response.OutputStream!?
"S.M. Altaf [MVP]" <sm*****@PLEASEDONTSPAMMEmsn.com> wrote in message
news:uA**************@tk2msftngp13.phx.gbl...
给出了一个例子在这里:
http://www.quirksmode.org/js/ filesize.html
但它会在IE中运行而不是FireFox。如果您试图通过同一页面上的服务器端代码执行此操作,那将是一个自相矛盾的无限循环,因为代码需要检查最终的大小
页面在发送给客户后,而不是在发电期间。
HTH
-Altaf
- -------------------------------------------------- -----------------------------
所有那些闪闪发光的折射率都很高。
www.mendhak.com
TomislaW <到********* @ hotmail.com>在消息中写道
新闻:%2 **************** @ TK2MSFTNGP09.phx.gbl ...
There is an example given here:
http://www.quirksmode.org/js/filesize.html
But it''ll work in IE and not FireFox. If you''re trying to do this through
server side code on the same page, that''d be something of a paradoxical
infinite loop, since the code would need to check for the final size of
the page after it''s been sent to the client, and not during generation.
HTH
-Altaf
--------------------------------------------------------------------------------
All that glitters has a high refractive index.
www.mendhak.com
"TomislaW" <to*********@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP09.phx.gbl...
我需要生成的页面大小aspx页面,我如何以及何时以编程方式获取此信息
I need page size of generated aspx page, how and when I can get this
information programmatically
这篇关于如何获取生成的aspx页面的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文