473,387 Members | 1,742 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Beginner ASP.NET help

Hi all,

I've built a site using ASP.NET (my first) and currently it has no content.
The layout and design is done (only 4kb of images used). Testing it out on
my webserver I notice a large load time for each page. On investigating,
each page seems to download 2 "WebResource.axd" files, one being 32.41 kB
and the other 20.52 kB.
I use the menu control (static with 1 level) and navigation control. Are
these the cause of the two above files?
My site has literally 5 pages and a near 60kb download per page view seems
slightly excessive? Is there anything I do to stop or reduce this?

Chris

Feb 25 '06 #1
4 2038
re:
I use the menu control (static with 1 level) and navigation control. Are these the cause of the
two above files?
Yes.

In order for the DHMTL functionality/navigation/validation features in controls to be handled,
the necessary js scripts/embedded images/etc. need to be returned to the client.

See :

http://wintellect.com/WEBLOGS/wintel...9/12/2260.aspx

http://www.nikhilk.net/WebResourceAttribute.aspx

http://msdn.microsoft.com/msdnmag/is...2/CuttingEdge/

Victor Garcia Aprea has a very good explanation at :

http://msdn.microsoft.com/library/de...ebresource.asp

Basically, webresource.axd is new client-facing handler introduced with ASP.NET 2.0
that delivers dynamically generated JScript to minimize postbacks, etc.

If you didn't use webresource.axd, you'd have to write your own javascript
routines to handle validation, navigation and other functionality you need.


Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================
"Chris" <mi*********@gmail.com> wrote in message
news:oe******************@fe3.news.blueyonder.co.u k... Hi all,

I've built a site using ASP.NET (my first) and currently it has no content. The layout and design
is done (only 4kb of images used). Testing it out on my webserver I notice a large load time for
each page. On investigating, each page seems to download 2 "WebResource.axd" files, one being
32.41 kB and the other 20.52 kB.
I use the menu control (static with 1 level) and navigation control. Are these the cause of the
two above files?
My site has literally 5 pages and a near 60kb download per page view seems slightly excessive? Is
there anything I do to stop or reduce this?

Chris

Feb 25 '06 #2

Juan T. Llibre wrote:
re:
I use the menu control (static with 1 level) and navigation control. Are these the cause of the
two above files?


Yes.

In order for the DHMTL functionality/navigation/validation features in controls to be handled,
the necessary js scripts/embedded images/etc. need to be returned to the client.

See :

http://wintellect.com/WEBLOGS/wintel...9/12/2260.aspx

http://www.nikhilk.net/WebResourceAttribute.aspx

http://msdn.microsoft.com/msdnmag/is...2/CuttingEdge/

Victor Garcia Aprea has a very good explanation at :

http://msdn.microsoft.com/library/de...ebresource.asp

Basically, webresource.axd is new client-facing handler introduced with ASP.NET 2.0
that delivers dynamically generated JScript to minimize postbacks, etc.

If you didn't use webresource.axd, you'd have to write your own javascript
routines to handle validation, navigation and other functionality you need.


Thanks for the explaination and links. I'm still slightly concerned
about the 60kb download for a page weighing in at 6kb. Is it normal for
a nav with 2 elements (root - 1 level down) max to have a webresource
file size of 20.52 kB, and a menu with 6 links, no levels and static, a
filesize of 32.41 kB both full of JS? I could write simple hyperlinks
to do the job I need doing and that would take a few kb at best. Should
I just use manually written navigation and menu for such a small site?
I tried using the menu and nav with a sitemap to save time writing
them, but if it slows up my page by 6-8 secs on a dial up I'd rather
not use them for my current site.
I guess i'm asking, are these file sizes for such simple tasks normal?
And if not, what am I doing wrong?

Chris

Feb 25 '06 #3
re:
Should I just use manually written navigation and menu for such a small site?
For a small site it's often easier to stick with the basics, instead of using built-in objects
which have a pre-specified load factor which must serve many purposes, and not
only the small subset you might actually need for a small site.

re: are these file sizes for such simple tasks normal?
No, if you only intend to have the limited features a small site demands.
For larger, more complex, sites, yes, it's quite normal.

re: And if not, what am I doing wrong?
Nothing at all.

If the navigation resources which you need for that site are simple, roll your own.
You'll wind up with a much lighter page load factor.

btw, here's an additional tip which might reduce page load size :

Set <pages enableViewState"false"> in web.config, if you never use ViewState

or...
set <pages enableViewState"true"> in web.config
and turn it *off* in individual pages in which you don't use ViewState :

<%@ Page EnableViewState="false" %>

That should clip off some more page load size.

Juan T. Llibre, asp.net MVP
aspnetfaq.com : http://www.aspnetfaq.com/
asp.net faq : http://asp.net.do/faq/
foros de asp.net, en español : http://asp.net.do/foros/
===================================

"^MisterJingo^" <mi*********@gmail.com> wrote in message
news:11**********************@e56g2000cwe.googlegr oups.com...
Juan T. Llibre wrote:
re:
> I use the menu control (static with 1 level) and navigation control. Are these the cause of the
> two above files?
Yes.

In order for the DHMTL functionality/navigation/validation features in controls to be handled,
the necessary js scripts/embedded images/etc. need to be returned to the client.

See :

http://wintellect.com/WEBLOGS/wintel...9/12/2260.aspx

http://www.nikhilk.net/WebResourceAttribute.aspx

http://msdn.microsoft.com/msdnmag/is...2/CuttingEdge/

Victor Garcia Aprea has a very good explanation at :

http://msdn.microsoft.com/library/de...ebresource.asp

Basically, webresource.axd is new client-facing handler introduced with ASP.NET 2.0
that delivers dynamically generated JScript to minimize postbacks, etc.

If you didn't use webresource.axd, you'd have to write your own javascript
routines to handle validation, navigation and other functionality you need.

Thanks for the explaination and links. I'm still slightly concerned
about the 60kb download for a page weighing in at 6kb. Is it normal for
a nav with 2 elements (root - 1 level down) max to have a webresource
file size of 20.52 kB, and a menu with 6 links, no levels and static, a
filesize of 32.41 kB both full of JS? I could write simple hyperlinks
to do the job I need doing and that would take a few kb at best. Should
I just use manually written navigation and menu for such a small site?
I tried using the menu and nav with a sitemap to save time writing
them, but if it slows up my page by 6-8 secs on a dial up I'd rather
not use them for my current site.
I guess i'm asking, are these file sizes for such simple tasks normal?
And if not, what am I doing wrong?

Chris

Feb 25 '06 #4

Juan T. Llibre wrote:
re:


Hi Juan,

You've been a huge help. Thank you :)

Chris

Feb 25 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Art | last post by:
NEWBIE ALERT! Esteemed List Participants and Lurkers: (System: P-II 350, 192 meg, Win98 SE, Python 2.2.3, wxPythonWIN32-2.4.1.2-Py22.exe) I'm having a lot of fun getting started with Python...
3
by: jvax | last post by:
Hi all, I hope I'm posting in the right NG... I have a data text file I want to read from a c++ program. the data file goes like this: 90 # number of balls 33 42 13
8
by: Grrrbau | last post by:
I'm a beginner. I'm looking for a good C++ book. Someone told me about Lafore's "Object-Oriented Programming in C++". What do you think? Grrrbau
1
by: LRW | last post by:
I was wondering if anyone could recommend some good beginner sites and tutorial sites for writting ASP.Net pages in C#. Things that especially help with datagrids!! And, are there additional...
14
by: z_learning_tester | last post by:
But I can't seem to find the answer. The question is how do you reverse the words in a string? Or how do you reverse the numbers listed in a string? The example is usually something like: Turn...
3
by: William Foster | last post by:
Good evening all, Microsoft is really starting to annoy me as a new user. I am trying to convert my code from VBA (A very user friendly laguage with generally good help files) to Visual Studio...
10
by: See_Red_Run | last post by:
Hi, I am trying to figure out how to get started with PHP/MySQL. Everything I've read so far says to start with PHP first. I was expecting something like Visual Basic Express or some other type...
1
by: Blue_hatter | last post by:
Hey Guys, I'm a newbie to the whole C++ Programming thing as I think I said before in a post. The thing is, I have this idea that might help me to learn at a better pace than I am doing currently....
10
by: hamza612 | last post by:
I want to start learning how to program. But I dont know where to start. From what I've heard so far c++ is not a good lang. to learn as a beginner because its very complicated compared to others...
22
by: ddg_linux | last post by:
I have been reading about and doing a lot of php code examples from books but now I find myself wanting to do something practical with some of the skills that I have learned. I am a beginner php...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.