CheapWindowsHosting.com | This article give you some of the best tips to improve your ASP.NET Website performance. Writing an ASP.NET application is relatively easy with the use of Rapid Application Development controls however it is just not enough to use. You should use each component wisely to get performance benefit to your ASP.NET Website. Remember that 80-90% of page load time spent on downloading all components like HTML, CSS, Script files, images, flash. Rather than looking for re-designing application architecture you should first try to organize your static contents. Below are some easy tips which helps you to achieve a bigger reduction in response times.
Make sure HTTP compression is turned On. HTTP compression is a algorithm which removes extra space, redundancy from file and produce clean output. It generates smaller size and reduce weight of file than original representation. The outcome of this is reduced bandwidth and time to load page.
Although the support for compression is a feature of all modern browsers you should enable and configure or implement custom compression feature.
You can configure httpCompression tag under system.webServer in ASP.NET Web.config file or Enable HttpCompression feature in IIS.
You can also implement HttpModule to remove space and return compressed output. However it includes runtime cost to implement custom logic to remove unwanted space and redundancy. You can compress your physical files using GZipStream before deploy to production server.
Below is sample code to compress your aspx file.
private void CompressFile(string srcPath, string tarPath)
{
using(FileStream srcStream = File.OpenRead(srcPath))
{
using(FileStream tarStream = File.OpenWrite(tarPath));
{
using(GZipStream cStream = new GZipStream(srcStream,
CompressMode.Compress))
{
byte[]data = new byte[srcStream.Length];
srcStream.Read(data, 0, data.Length);
tarStream.Write(data, 0, data.Length);
}
}
}
}
Set CacheControlMaxAge property in Web.config file. It caches static contents like image, css, js files for particular duration. One year is recommended settings.
Below Web.config setting shows you how to configure caching for static contents
<system.webServer>
<staticcontent>
<clientCache cacheControlMode="UseExpires"
httpExpires="Tue, 30 June 2015 03:14:07 GMT"/>
</staticcontent>
</system.webServer>
Get MiniProfiler from GitHub or use Nuget package manager and configure for your site. It is profiling library developed by StackExchange team which helps to monitor your Website performance. You can see detail execution time. Do not give an access to end user and once your testing is done remove configuration.
Recommended ASP.NET 5 Hosting [su_button url=”http://asphostportal.com/ASPNET-5-Hosting” style=”stroked” background=”#eab912″]Click Here[/su_button]
For your Data controls like GridView, DataGrid, Repeater UI controls, make sure you are using custom or database level paging. The built in feature of control’s paging is very heavy and expensive as it has to get all the records (no matter how big is your resultset) from database and then filter it at client side as per current page number and pagesize.
When you implement custom paging you provide required page index and page size to database and database returns filtered rows as per input values. So it reduces the required bandwidth and loading time for GridView.
For rich user experience it is necessary to validate user input on client side using JavaScript or jQuery. You can also use RegEx expression to make sure input data is in valid format. This provides quick feedback and makes page more responsive. Also you should provide easy to understand error messages to users.
Although client side validations are quick and responsive, do not avoid server side validations as client side validations easy to break.
Reducing amount of data sent across the network can improve your application performance significantly. You can achieve this by below things
1. Combine script and css files: Try to combine all script files in single file, it reduce required number of requests to load page. If you are using any third party script file, you can copy its content to your single script file. It will save DNS look up time.
If you can not combine all scripts in one file, try to make it for one file for one domain script (e.g. make a one script file for all scripts referring from jQuery website). It reduces DNS lookup time.
Apply same tips for css files.
2. Minify script and css files: You should minify your script and css files to reduce its size. Minification will remove spaces from script or css files and replace long keyword with small characters. You can use this tool for minification.
3. Script reference: Use script references at the bottom of the page because async downloads halt when script reference is reached. Stylesheet and images can be download in async.
4. Async Scripts: Below code allows you to download script files asynchronously.
<script async src="slow.js"></script>
If clients browsers are old. This can be use for script and css files.
<script type="text/javascript">
var link = document.createElement("link");
link.type = "text/css"; link.rel = "stylesheet";
link.href = "Styles/Site.min.css";
document.getElementsByTagName("head")[0].appendChild(link)</script>
Use Content Delivery Network(CDN) for hosting images and script files. These files can be cached and reduce load on server.
A content delivery network (CDN) is a bunch of web servers shared across multiple locations to deliver content more efficiently to users. Depending on user’s location and measure of network proximity server is selected for delivering content. It look for server with the fewest network hops or the server with the quickest response time.
The users location in respect to location has an impact on page load time. Deploying your content to geographically dispersed server or near to your most intended website audience.
Recommended ASP.NET 5 Hosting [su_button url=”http://asphostportal.com/ASPNET-5-Hosting” style=”stroked” background=”#eab912″]Click Here[/su_button]
CheapWindowsHosting.com | Cheap and Reliable Windows ASP.NET Hosting. When you install .NET 5 Preview it will actually be installed as .NET, partly to maintain (in-place) compatibility with previous versions (4, 4.5, 4.5.1, 4.5.2 and 5). This means that if you have one of the above mentioned frameworks installed on your computer, this installer will upgrade them to 5 while if you have older frameworks installed like 3.5, 2.0, 1.1 etc., then it will run alongside them.
Important note: Before downloading and installing this preview version, please remember that Visual Studio 2015 Preview and .NET 5 Preview are for testing and feedback purposes only and not for a production environment.
There are three key areas to look at:
Choosing a quality ASP.NET hosting provider is not an easy job for most users, especially those newbies. Therefore, our editors have done the hard work for you and finally named the companies above as the best ASP.NET web hosting companies. All of above 3 ASP.NET hosting above offer the latest Microsoft technologies such as:
1. The latest Windows Server 2012 edition with IIS 8.5
2. The latest ASP.NET version
3. Support MSSQL 2008/2008 R2/2012/2014 on their hosting environment
4. Support Full Trust Hosting
5. Dedicated Application Pool
[su_box title=”ASPHostPortal – Best ASP.NET Hosting ” style=”glass”]
Founded in 2008, it is a fast growing web hosting company operated in New York, NY, US, offering the comprehensive web hosting solutions on Windows Hosting and they have a brilliant reputation in the ASP.NET development community for their budget and developer-friendly hosting which supports almost all the latest cutting-edge Microsoft technology. ASPHostPortal have various shared hosting plan which start from Host Intro until Host Seven. But, there are only 4 favorite plans which start from Host One, Host Two, Host Three, and Host Four. Host One plan start with $5.00/month. Host Two start with $9.00/month, Host Three is the most favorite plan start from $14.00/month and Host Four start with $23.00/month. All of their hosting plan allows user host unlimited domains, unlimited email accounts, at least 1 MSSQL and 1 MySQL database. ASPHostPortal is the best ASP.NET Hosting, check further information at http://www.asphostportal.com
[/su_box]
[su_box title=”HostForLIFE – A Superior ASP.NET Hosting Provider” style=”glass”]
HostForLIFE, specializing in offering affordable and manageable ASP.NET hosting services, releases three plans for the clients – Classic Plan, Budget Plan, Economy Plan and Business Plan regularly starting at €3.00/mo, €5.50/mo, €8.00/mo and €11.00/mo separately. And also, the 30-day money back guarantee is offered to the clients who wish to cancel their accounts and get a refund. HostForLIFE supports Windows 2012/2008, ASP.NET 2.0/3.5SP1/4.0/4.5.1/5 as well as IIS8.5/ IIS8. It offers various versions of Microsoft SQL Databases, including MS SQL 2014, MS SQL 2012, MS SQL 2012R2 and MS SQL 2008. Each database comes with at least 500MB disk space. Furthermore, the webmasters can install the software by using one-click app installer. Besides, it is worth mentioning that the webmasters can get a full control of their websites through the users-friendly ASP.NET control panel of HostForLIFE. By using the top-level data center HostForLIFE delivers average 99.99% uptime to each hosted website.
[/su_box]
[su_box title=”DiscountService.biz –Premium ASP.NET Hosting Service Provider” style=”glass”]
DiscountService.biz is Microsoft Gold Partner, which means they are the first one to know the latest Microsoft technology and test Microsoft product before being released to the public. The engineers from DiscountService fully understand the needs of Microsoft developer, when signing up their service, their customer could choose the version of platform to better support their application. IIS ASP.NET security from DiscountService is also at FULL Trust level. The price of DiscountService is at $7.00/month.
[/su_box]
Under the overall consideration, ASPHostPortal, HostForLIFE and DiscountService.biz are 3 first-rank cheap windows ASP.NET hosting providers because of their affordable price, rich features, excellent performance and reliable support. Another piece of good news is that they have been listed as the cheap windows ASP.NET Hosting companies 2016
CheapWindowsHosting.com | Today we will learn about SEO. Do you know SEO? Nowdays almost people know about SEO, but there’s some people don’t know about that, so today we will tell you about SEO for beginner. Lets see it.
Search Engine Optimisation ( SEO ) in 2016 is a technical, analytical and creative process to improve the visibility of a website in search engines, with the aim of driving more potential customers to it. SEO is the acronym for search engine optimisation. Search engine optimisation is the process of optimising your website and its content so that it can easily be indexed by search engines.
As a beginner to search engine optimization (SEO) you need to understand that there is no magic way to rank your web site in the first page of Google, Bing or Yahoo. Search engines are governed by complex algorithms and it takes a lot of effort to ‘convince’ them that your web site or page deserves one of the top spots.
Nevertheless, there are certain rules you can follow to optimize your web site and provide the bots with the necessary signals. While the web is floated with SEO tips and advice these are explained in a theoretical level and not how they can be applied in practice. In my opinion, this is why most web site owners are confused and they either give up with SEO or simply do not get the expected results.
Page titles
Page titles are a very important aspect of SEO and this is why it is first on the list. My findings the last couple of months show that page titles are more important than ever especially for Google SEO. Exact page titles for low volume keywords can give you a competitive advantage in search results but this is something I will discuss in another post. For now the most important characteristics of a page title are:
Home page title: The title for your homepage can list the name of your website/business and could include other bits of important information like the physical location of the business or maybe a few of its main focuses or offerings. For example:
Post/other pages title:
Title of other posts/pages of your web site should accurately describe what the page is about and be attractive for the searcher.
Description
A page’s description meta tag is also very important. It gives users, Google and other search engines a summary of what the page is about. Google may choose to show what you type in the description as a snippets for your page or may decide to use a part of your page’s content. In other words it does not mean that what you write in the description will show in the snippet. The guidelines for writing a good description are:
You can see from the examples above how I use the description tag for my pages.
The permanent link structure is a term used to describe the format of URLS for pages (categories/tags) or individual posts of a web site. It is shown in the browser address bar and in the search results (below the page title).
Guidelines for optimized link structure
Examples of BAD url structures
Examples of GOOD url structures
When we talk about internal links we mean links in a page that point to other pages within the web site i.e. not external links. In the example below when you click on the link with anchor “increase the intensity” you will be redirected to a page with-in the web site to find out more information on how to increase the intensity of an exercise.
Internal linking is a very important factor for web site SEO but still many web site owners are not using it correctly. The rules to follow for internal links are simple:
Don’t always link old posts from new posts but every couple of weeks go back and link newer posts from older posts. It’s not an easy task to do especially if you have a lot of posts but it’s a very valuable tool for on-site SEO.
Don’t just publish text on your web site without first doing some basic formatting. This is not good for the user experience and works against your SEO efforts. General guidelines for formatting a post or page on your web site:
When formatting your posts always have in mind the user experience. Can the user identify the main sections of your post (H2 tags) just by looking at the page? Is the text easy to read even on other devices
SEO is about improving the user experience and a proper 404 page contributes to that goal. The 404 page is the page shown when a user is looking for a page on your site that doesn’t exist or mistypes a URL or follows a broken link. When the 404 page is not configured looks like this:
This is not useful for the user and negatively impacts the user experience.
A properly configured 404 page should:
If you are using a professional theme (like Thesis), it takes care of the 404 page. This is how my 404 page looks like:
Images are sometimes necessary to enhance the user experience but care should be taken not to create other side effects like problems with page load speed or slow response. Especially after the success of Pinterest many webmasters started using more images in their posts. If you do decide to use images, mind the following:
Google has many times said that page speed is a ranking factor and yet many webmasters don’t optimize their web sites for speed. Their aim (Google’s) is to provide the searcher with the most accurate results in the fastest possible way. It is certain that page speed (as a ranking factor) will gain more importance in the next couple of years.
Fast web sites improve the user experience and it is a factor to encourage the visitor to come again. In addition, a web site that loads in less than 8 seconds is more likely to:
How to tackle the page speed problem?
What is Google authorship status?
It’s a way to bind your content with your Google+ profile. When you do that successfully your picture appears in the Google search results next to your content (see example with my picture above)
How Google authorship status relates to Search Engine Optimization?
A significant number of searches performed each day are through mobile devices. Many studies over the last 6 months identified that the number of searches using smartphones is steadily increasing especially when it comes to making online purchases.
I am sure that if you have a look at your analytics data you will see a good percentage of your daily visits coming from mobile. In the example demonstrated below, almost 30% of the traffic is from mobile with Apple products (iPhone, iPod and iPad) being on the top positions
It’s not in the scope of this post to go in detail into mobile SEO but there some simple steps to follow to ensure that you web site is mobile friendly.
A sitemap is a list of all posts/pages of your web site. You need 2 types of sitemaps. First an xml sitemap to submit to Google, Bing and other search engines and second an html sitemap to help visitors find your content easier. It is recommended to place a link to your user sitemap from the main menu.