ASP.NET Url Re-writing and Postback Problem Solution

If you are doing any web-applications, chances are you have heard of Search Engine Optimization, also know as SEO. Its all about getting better search engine ranking for your web-pages.

Even though, there are no fixed rules on what to do, there is a general consensus among web masters, on what helps your search engine rankings. And one of them is having a better URL, in other words, having the key words in your URL using URL Re-writing.

The problem with ASP.NET is that once you do URL rewrite, all your post back would stop working. This has been a dis-advantage when it comes to SEO of your pages. There were few tricks we could have done to have it work, but, they are more of a hack than pretty solutions. I have linked to one of those solutions here a while ago.

But, Now with the advent of CSS control adapters, it is not only very easy to URL rewrite and have the postbacks work but also clean [hack!].

Here is a very nice article on various options on URL rewitting from ScottGu’s Blog

All the solutions offered are very clean and i happen to use the CSS control adapter solution on couple of my sandbox projects,

1) An online classified site for my home state, Andhra Pradesh

2) Online Deal and Coupon Aggregation site

-Cheers,

Leave a Reply

Your email address will not be published. Required fields are marked *