Posts

Showing posts from October 1, 2013

URl Rewriting in Asp.net

Image
How to write SEO or user friendly URL in asp.net? You can get complete reference regarding URL Rewriting in Asp. Net from MSDN site. actually URL rewriting means making URL user friendly so that every one can easily remember this. suppose you want to redirect user from grid view to complete detail page then you will use redirect query string then your URL would be something like this. domain.com/file_or_folder_name/parameter?id=5 . but you want to make it like this domain.com/file_or_folder_name/name_of_person/5 to do this follow these simple steps. 1. make a page name it FirstPage.aspx . and second page SecondPage.aspx 2. take a global.asax file and import name space System.Web.Routing in it. 3. make a database and enter some detail in it regarding name, sex, phone no, emp_id, and other information of several persons so that we can display them in grid view of both pages. FirstPage will contain only ID and name while SecondPage will contain full detail of emplo