If your solution had been custom-tailored for
use in an ASP.NET environment, then yes.
As you well, know, inserting JavaScript in ASP.NET
cannot be done by simply writing it into the page.
There's some tweaking that has to be done, like registering
the script and changing the way that the string is written.
Simply throwing a Javascript script at a beginning ASP.NET
programmer, like the ones who mostly wander in here, is not
offering a viable solution which they can use.
Like I said, if you have a solution for ASP.NET, please post it,
or post a link to where a viable solution can be found.
I have a feeling that the solution you posted
does not work if used within ASP.NET, anyway.
Did you verify that it does work in ASP.NET ?
( After modifying the way the script is written,
so that it can be inserted in an ASPX page ?)
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*****@PLEASE DONTSPAMMEmsn.c om> wrote in message
news:Ox******** ******@TK2MSFTN GP09.phx.gbl...
You don't consider JavaScript to be part of the "ASP.NET model"? That's surprising.
"Juan T. Llibre" <no***********@ nowhere.com> wrote in message
news:OB******** ******@TK2MSFTN GP09.phx.gbl... re: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*****@PLEASE DONTSPAMMEmsn.c om> wrote in message
news:uA******** ******@tk2msftn gp13.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*********@ho tmail.com> wrote in message
news:%2******** ********@TK2MSF TNGP09.phx.gbl. ..
I need page size of generated aspx page, how and when I can get this information
programmati cally