How to change URL of a page on button click and change the Keywords & Description of a page in asp.net?

148 Views Asked by At

I have a .aspx page which show items hierarchically(4Levels) depending on selected category(Level1). I want to change the URL on button click of specific Hierarchy say Level1, Level2, Level3, Level4 and accordingly change the Keywords & Description of a page depending on Clicked Item of specific Level.

Similar to this link

Eg:

  • When we click on CellPhones it shows different keywords & description in meta tag
  • When we click on CellPhones->BlackBerry-> it shows its related keyword & description in meta. And most important is the URL also changes at every CLICK.

Please can any one suggest me to do the same in asp.net.

Note: I am using Visual Studio 2008 Framework 3.5

1

There are 1 best solutions below

5
On

Try looking at the History API (part of HTML5 so it works in all modern browsers) - specifically history.pushState().

http://html5doctor.com/history-api/

Example: http://html5doctor.com/demos/history/

Good luck.