Increase the page load time in .net?

Posted by Gg under ASP.NET on 4/26/2011 | Points: 10 | Views : 2391 | Status : [Member] | Replies : 3
Hi,

What are the ways we can increase the page load time in .net?
What is the difference between Session and View state?
What is the use of Global.ascx file?

Advance Thanks.

Thanks,
GG.




Responses

Posted by: Ndebata on: 4/26/2011 [Member] Starter | Points: 25

Up
0
Down
Hi

You can use meta tags in your aspx page header, take a look at this link
http://secretgeek.net/fajax.asp

Session data will be persitent through out the application, from the time user has started a new session till it expires or ends.

Global ascx file is generally used to handle application events.

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: SheoNarayan on: 4/26/2011 [Administrator] HonoraryPlatinum | Points: 25

Up
0
Down
Hi Gg,

Hope, to increase the page you mean fast download of the page or improve the performance of the page.

To improve the performance of the page you need to ensure following
1. you are using less viewstate, if viewstate is not required for a particular asp.net control disable it.
2. use html control if possible instead of using asp.net server control (eg. use anchor tag instead of asp:hyperlink)
3. use less session, if you are using session see if you can decrease the amount of data you are storing into the session.
4. efficiently write the code (do not declare unnecessary variables etc.)

There are many more points that can be suggested after seeing your code however above are few that are important and should help you increasing the performance of the page.

The difference between Session and ViewState
Session variable is used to store user specific data that can be accessed from any page. ViewState is also used to store data however it can be accessed on the page (in postback) where it was created (this is the very basic difference between session and viewstate).

Use of global.asax
Global.asax file is used to catch the application level event and perform operations (like application_start, session_start etc.)

Hope above will help you.

Thanks

Regards,
Sheo Narayan
http://www.dotnetfunda.com

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Tijut2k on: 4/27/2011 [Member] Starter | Points: 25

Up
0
Down

80% of the end-user response time is spent on the front-end. Most of this time is tied up in downloading all the
components in the page: images, stylesheets, scripts, Flash, etc.
Reducing the number of components in turn reduces the number of HTTP requests required to render the page.
This is the key to faster pages.

Core part to loading fast pages

1.Make Fewer HTTP Requests
2.Reduce DNS Lookups
3.Avoid Redirects
4.Make Ajax Cacheable
5.Postload Components
6.Preload Components
7.Reduce the Number of DOM Elements
8.Split Components Across Domains
9.Minimize Number of iframes
10.Avoid 404s

refer Link :http://developer.yahoo.com/blogs/ydn/posts/2007/04/rule_1_make_few/

Hope above will help you.


Best Regard's
Tiju Thankachan

Gg, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response