I am creating a shopping cart project in Asp.net, c# and sql server 2000 and came across some issues.
The issue is that i created a page with the list of main categories like
Beauty & Health, Bollywood Memorabilia,Books & Magazines,etc.
When i click on any of the links it will be directed to a html page which contain details regarding each product of the shopping cart taken from the database.
This page is dynamically created using httphandler in ASP.NET. In httphandler i specifically handled all th request with html extension.
Each product in this has a link to another html page which shows the detailed information of the product.
This is also dynamically generated and these are html pages being handled by httphandler.
The links are in this order:
http://localhost/shoppingcart/page1.htm : It is the main page which contains the main categories
http://localhost/shoppingcart/1/Books%20Magazines.html : this contains all the books of this category which has paging features(/1/ denotes the page)
http://localhost/shoppingcart/dotnet.html : this conmtains the detailed information of dotnet book.
The last two links are handled by html handler which handles the request depending upon the number of slashes in it.
now what i want is that i should change the link http://localhost/shoppingcart/1/Books%20Magazines.html to
http://localhost/shoppingcart/1/Books%20Magazines/ with no extension.
The user can only see this request in this manner http://localhost/shoppingcart/1/Books%20Magazines/ but inside the request should be converted to
http://localhost/shoppingcart/1/Books%20Magazines.html and must be processed.
In a number of previous threads, I have talked about how to get truly friendly URLs (without extensions). Use the following search results to find some of those other threads. http://forums.asp.net/es/BetaSearch.aspx?q=url+AND+dogma
sameersalim
Member
10 Points
2 Posts
How to handle request without extension using httpmodule or httphandler
Sep 22, 2005 06:22 AM|LINK
I am creating a shopping cart project in Asp.net, c# and sql server 2000 and came across some issues.
The issue is that i created a page with the list of main categories like Beauty & Health, Bollywood Memorabilia,Books & Magazines,etc.
When i click on any of the links it will be directed to a html page which contain details regarding each product of the shopping cart taken from the database.
This page is dynamically created using httphandler in ASP.NET. In httphandler i specifically handled all th request with html extension.
Each product in this has a link to another html page which shows the detailed information of the product.
This is also dynamically generated and these are html pages being handled by httphandler.
The links are in this order:
http://localhost/shoppingcart/page1.htm : It is the main page which contains the main categories
http://localhost/shoppingcart/1/Books%20Magazines.html : this contains all the books of this category which has paging features(/1/ denotes the page)
http://localhost/shoppingcart/dotnet.html : this conmtains the detailed information of dotnet book.
The last two links are handled by html handler which handles the request depending upon the number of slashes in it.
now what i want is that i should change the link http://localhost/shoppingcart/1/Books%20Magazines.html to
http://localhost/shoppingcart/1/Books%20Magazines/ with no extension.
The user can only see this request in this manner http://localhost/shoppingcart/1/Books%20Magazines/ but inside the request should be converted to
http://localhost/shoppingcart/1/Books%20Magazines.html and must be processed.
Is there any way by which i can do this.
Any help would be kindly appreciated.
SomeNewKid
All-Star
45894 Points
8027 Posts
Re: How to handle request without extension using httpmodule or httphandler
Sep 22, 2005 07:21 AM|LINK
http://forums.asp.net/es/BetaSearch.aspx?q=url+AND+dogma