Solved

How to hide query strings in ASP.NET Application?

Posted on 2009-05-18
3
347 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
Comment Utility
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
Comment Utility
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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
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 …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
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 …

762 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

10 Experts available now in Live!

Get 1:1 Help Now