Solved

How to hide query strings in ASP.NET Application?

Posted on 2009-05-18
3
348 Views
Last Modified: 2013-11-13
Hi all,

I'm hoping some expert out there is also tweaking or have tweaked dashCommerce 3. I am wondering how
were the URLs changed at run time to hide the query strings. For example, instead of catalog.aspx?catid=1
the URL of the product catalog of my first category is: http://localhost/mystore/Catalog-women_1.aspx 

There is no physical "Catalog-women_1.aspx" file only catalog.aspx
The name of my category is women, and the category ID is 1.

I want to know how this is done. Can anyone point me to the right topic that discusses this? Any ideas please?
0
Comment
Question by:JaimeJegonia
3 Comments
 
LVL 14

Accepted Solution

by:
jjardine earned 500 total points
ID: 24417891
I am not familiar with dashCommerce but they are most likely using URL Rewriting to perform this operation.  When the URL comes in, it gets parsed and then rewritten behind the scenes to the querystring you see.

Not sure if this will give any assistance to you   http://dashcommerce.org/forums/p/1684/6317.aspx
0
 
LVL 6

Expert Comment

by:M3mph15
ID: 24417897
Hi,

I believe it looks like the MVC framework for asp.net. Where all of the urls get passed to a controller which splits the url into certain variables.

http://en.wikipedia.org/wiki/Model-view-controller
http://weblogs.asp.net/scottgu/archive/2007/10/14/asp-net-mvc-framework.aspx
http://www.asp.net/mvc/

Links above might be useful to get you started on the subject.

HTH
-M3mph15
0
 

Author Closing Comment

by:JaimeJegonia
ID: 31582832
Thanks to both of you for sharing your ideas however jjardine provided the right term, "URL Rewriting". I only encountered this function just today.

For dashCommerce users who might have the same problem, look for RewriteService.cs under Web folder. If you want to change how URLs are named you also need to modify some in Web.config
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

929 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now