Learn More about our dedicated servers

Latest Web News

Google buys search tech from Australian university
Google Inc. said Tuesday that it has acquired search engine technology from an Australian university that the institution described last year as potentially revolutionary. [Google buys search tech from Australian university] Google Inc. said Tuesday that it has acquired search engine technology from an Australian...

Australia winning computer crime battle
The 2005 Australian Computer Crime survey released today has painted a positive landscape for Australian IT professionals; however, end user education is still lacking and remains the weakest link in the security chain. [Australia winning computer crime battle] The 2005 Australian...

BlackBerry domination in Australia challenged by Good
BlackBerry's dominance in Australia's mobile e-mail and groupware market will face fresh competition with telecom company Telstra announcing it will resell competing software from Good Technology. [BlackBerry domination in Australia challenged by Good] Telstra is the first local carrier to support the Good mobility suite of applications which includes mobile...

Asia-Australia Technology Launches the Blue Form
Asia-Australia Technology, one of the key players in the Australian IT industry, has launched its new enterprise level service, The Blue Form. The Blue Form is the Internet's first and leading service for creating and managing forms for organisations. Melbourne, VIC (PRWEB) July 6, 2006 -- The Blue Form offers the ability to create common business forms such as expense forms, timesheets, leave forms or any your...

Piracy payout to squeeze small players
While music labels celebrate a record $151 million piracy payout, legal experts warn small-time innovators will be squeezed out of the market. The Australian developers of internet technology that for years deprived record companies of royalties have agreed to pay $151 million to the labels that took them to court...

Website Usability, Breadcrumbs and Left-Side Navigation
The very basis of usability is the user. How can you make sure your website is designed with your user in mind? You must first consider the natural behavior of your user in order to understand how your user will experience your site. This month, we will talk in more detail about the psychology and behavior of the human Internet customer, particularly in reference to navigation...


07.28.06


ASP.NET Developers And SEO

By Patrick Santry
If you're developing for the Web then you should familiarize yourself with some Search Engine Optimization or SEO concepts.

The idea here is to make your ASP.NET application as friendly as possible for spiders, and the specific spider we're talking about is Google.

In this article we're going to cover some basic concepts on what you can do in order to make your ASP.NET application as spider and search engine friendly as possible.

Postbacks

Your biggest gain in the search engine world is going to avoid the use of postbacks. For example, say you have content within an ASP panel. But in order to display that content you use a button and capture a click event in the code behind, then you change the property of the panel to visible=true once the button is clicked. This will not work with spiders since they don't "click buttons" so to speak. The way to write the page so the spider will work with it is to use a link, and then pass a parameter via a URL, this could be a link back to the page if you want, but then in the Page_Load event check for the parameters values to determine what panel or content to display in your page.

I can't understate the importance of eliminating postbacks when it comes to the Internet. Links are much better when dealing with spiders, avoid the postback, spiders simply can't do them.

Friendly URLs

Another thing to look into is the use of a URL rewriter in order to create spider friendly URLs. There are many examples on the Web for creating a URL rewriter. What a URL rewriter does is translate the parameters over to a directory like structure. For example, mypage.aspx?param1=1śm2=2 becomes something like: /mypage/1/2/default.aspx. This will enhance the spiders efficiency in spidering your site and potentially increase the frequency of a spider doing a deep crawl through your site. You can read evidence of this fact via the Google FAQ:

"Your pages are dynamically generated. We're able to index dynamically generated pages. However, because our web crawler could overwhelm and crash sites that serve dynamic content, we limit the number of dynamic pages we index. In addition, our crawlers may suspect that a URL with many dynamic parameters might be the same page as another URL with different parameters. For that reason, we recommend using fewer parameters if possible. Typically, URLs with 1-2 parameters are more easily crawlable than those with many parameters. Also, you can help us find your dynamic URLs by submitting them to Google Sitemaps."

Learn More about our dedicated servers

There are plenty of resources on the Web for URL rewriting:

http://www.codeproject.com/aspnet/URLRewriter.asp

http://msdn.microsoft.com/library/default.asp?url=/library/en-
us/dnaspp/html/urlrewriting.asp

http://www.15seconds.com/Issue/030522.htm

Titles and Meta Tags

Another issue when generating dynamic pages, and using the same page but either posting back or linking back via a URL. Be sure to change the Title of the page and Meta description. If you do not do this then Google is going to "think" that it is the same page, and the results will not be displayed as high as you would like. It will definitely affect your search results. One way of tacking this is to convert both the title, and meta description tags to HTML controls and then change the inner text, or dynamically generate the text for the tags when displaying different content.

Here's a sample block of code for dynamically changing the title tag of your Web page:

First modify the page in order to make the title tag a control you can modify:

<TITLE id="PageTitle" runat="server">

Then in your code you first declare the control as an HTMLGenericControl and set the properties:

Protected WithEvents PageTitle As System.Web.UI.HtmlControls.HtmlGenericControl

PageTitle.InnerText = MyValue

Then in your code you first declare the control as an HTMLGenericControl and set the properties:

Read the rest of the article.

About the Author:
Written by Patrick Santry, ASP.NET MVP, MCSE, recognized speaker, and author of several books and magazine articles, and owner of WWWCoder.com (http://www.wwwcoder.com). You can visit his blog at http://blogs.wwwcoder.com/psantry/. WWWCoder.com provides full text searching on ASP.NET articles, tutorials, weblogs, podcasts, and more resources for the aspiring developer.

About DevWebProAU
DevWebProAU is for professional developers ... those who build and manage applications and sophisticated websites. DevWebProAU delivers via news and expert advice New Strategies In Development.

DevWebProAU is brought to you by:

SecurityConfig.com NetworkingFiles.com
NetworkNewz.com WebProASP.com
DatabaseProNews.com SQLProNews.com
ITcertificationNews.com SysAdminNews.com
LinuxProNews.com WirelessProNews.com
CProgrammingTrends.com NetworkNewz.com



-- DevWebProAU is an iEntry, Inc. publication --
iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509
2006 iEntry, Inc.  All Rights Reserved  Privacy Policy  Legal  

archives | advertising info | news headlines | free newsletters | comments/feedback | submit article

Delivering IT Solutions DevWebProAU News Archives About Us Feedback DevWebProAU Home Page About Article Archive News Downloads WebProWorld Forums Jayde iEntry Advertise Contact