Click here to Skip to main content
15,915,086 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
just wonder if
page.aspx
page.aspx.designer.vb
page.aspx.vb

are all pages load by client or just page.aspx?
thanks Henry

What I have tried:

i tried google it, couldnt find any answers
Posted
Updated 8-Mar-19 4:02am

1 solution

No. In fact the client doesn't actually "see" any of them - it sees the HTML which is generated by the page Load and other events.

All the VB (and C#) code is executed at the server before the client gets to even see any of the HTML it causes to be generated.
 
Share this answer
 
Comments
Member 10338731 8-Mar-19 10:31am    
Is there a way how to calculate how much bytes is getting loaded by client because my page.aspx is around 300 kb + a page.aspx.vb is 500 kb + page.aspx.designer.vb is 200 kb
Thanks
OriginalGriff 8-Mar-19 10:38am    
No, it depends on what yoru code does: if it loads a video, for example, or reads 1000 images from a DB it could be considerably bigger than you expect.

But you can find out from your browser:
https://superuser.com/questions/364868/how-do-i-determine-the-size-of-a-page-source-in-chrome
Is for Chrome, but most will have something similar.
MadMyche 8-Mar-19 10:58am    
Easiest thing to do is to view the page in a browser; using the browser developer tools (eg FireBug) set to the network tab, then you can see the size.
You could also write into your web application to write the output stream to a file and check that file size.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900