Banner Ad

Showing posts with label Webpage. Show all posts
Showing posts with label Webpage. Show all posts

Monday, September 14, 2015

How to improve the performance of an ASP.Net Web page?

By Francis   Posted at   9:22 PM   Webpage No comments
Performance         
                     This is the most common question from asp.net forum to any interview. In this post I’m going to point out some of the important points that may help to improve the performance.
                      Here I used the word “improve performance” in the sense to decrease the loading time of the page. There are various reason behind. Some of them we look into from the “backend side” (Database side) and rest of them we need to take care in “front-end” ((UI) side.
For illustrative purpose, you have a ASP.Net Web site, one of the aspx page take much time to load. Also as a backend I assume that you are using SQL Server. Through out this article, we are going to see how to decrease the loading time.
Back End (DB):
Below are the points that you need to consider to fine tune the DB:
1) Try to check the Query performance, that is how much time the query will take to execute and pull the records from DB. The Use SQL Server Profiler and Execution plan for that query. So that you can come to the conclusion in which part it took much time.
2) Check in every table (who are all part of the query) Index is created properly.
3) If your query involves an complex Stored procedure, which in turn use lot of joins, then you should focus on every table. In some cases, sub-query perform better than the joins.
4) If your web page, involves paging concepts, try to move the paging concepts to SQL Server. I meant that based on the page count the SP will return the records, instead of bring the records as a whole.
Front End (UI):
1) If your page displays a lot of records, try to introduce “paging”. Say for example your page displays 1000 record in a page. Instead of pulling 1000 records as a whole, by introducing paging such that page size as 10, you need to pull 10 records only!
2) Try to choose “tabless” design, that is try to avoid “table” to design the webpage. In order to achieve this use should use “div” tag.
3) If you want to design responsive pages, try to use existing (proved) frameworks such as Bootstrap, instead of trying your own code.
4) Also if your webpage deals with lot of images or videos to display, then consider to use appropriate CDN (Content Delivery Network).
5) Use bundling and minification techniques, which reduce the server calls to load the javascript and CSS files, which in turn reduce the loading time.


Readers!! Do you thing that I have missed out anything? Let me know your thoughts in comments! Smile

Tuesday, August 16, 2011

So what is meant by Dynamic Web page?

By Francis   Posted at   9:34 AM   Webpage No comments

There are 2 types of web pages.

1) Static web page

2) Dynamic web page

Static web pages are as its name implies it contains static data. For example, a simple html page is called as “Static” page. It contents are always static or predefined statically.

But whereas dynamic pages are served by Web server or its created by the Web server and served to the user, who is initiated the request.

Static web pages are created by HTML, a language which is traditionally used to create static pages.

In other hand, Dynamic web pages are created by Server side languages like Java, JSP, ASP, ASP.Net. PHP Phython, Perl etc.

Whenever the Dynamic web page, is requested it was compiled/executed in server itself and finally output HTML.

Remember, HTML is the only language that can be understand by the browser. That’s the reason all the webservers are emits the output in HTML format.

Connect with Us