Solved

How to hide query strings in ASP.NET Application?

Posted on 2009-05-18
3
351 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

In this post we will learn different types of Android Layout and some basics of an Android App.
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

749 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