Click here to Skip to main content
15,886,791 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi guys,


I have completed my asp.net web application using c#, backend as Sqlserver-2008.

i have published my web application.

n

its taking lots of time to load it.

can any one help me, how to speedup my web application to work/load in seconds.

Please, help me.

Thanks
Posted

1.Modify the settings from your web.config in the next way:
a)remove the attribute "debug"
b)setup the session expiration to a higher value, like in the next example (24 hours):
<sessionState mode="InProc" cookieless="false" timeout="1440"/>

2.On the web server where the application is hosting, do the next settings/optimizations in the IIS:
a)Create and use your own Application Pool and only for your web application;
b)On the "Advanced Settings" of your site setup "The connection time-out" to a higher value;
Here you could find more details: How-to-speedup-my-web-pages-to-load-in-asp-net[^]

3.Try to optimize at maximum your master page (main layout if you are using MVC);

4. Try to optimize the start page;

For points 3 and 4 there are some ideas:
a)If you are using grids or tables with multiple rows, try to use pagination;
You can find details about pagination in my next article: Advanced ASPX GridView Pagination and Data Entities[^]
b)The images used in the pages try to make them in size as small as possible and use a compressed format like JPEG;
c)If you are using static data try to cache them into the Application session so only ones will be used for all users as long the web application will be active;
 
Share this answer
 
Hi there,

In web application optimize we need to focus in 3 parts : IIS Server, Clients & MSSQL optimize
1. IIS optimize:
- Using cache.
- Find the best solution for network/ bandwidth between IIS & MSSQL is helped a lot.
- COMET server push is also help to provide a small changing pieces of data from server to client without request from client. (View more: http://en.wikipedia.org/wiki/Comet_%28programming%29[^])
- Make sure pages had compressed(Using gzip check: http://checkgzipcompression.com/[^] )
- Image optimization.
- Stream media hosting, my suggestion is using Youtube ;-)
2. Clients:
- html,css valid with http://validator.w3.org/[^]
- Using shared jquery (my suggestion is using Google jquery)
- Make sure that connect with other server is good if your pages connect to any outside resources.
3. SQLserver :
- Make sure every query is the best (Example: using "select top" instead for "select *" )
- Using SQL paging.
- Using SQL Server Analysis Services to find out the best practices for performance optimization

Hope that solution will help you in web application optimization.
Tri
 
Share this answer
 
v2

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