469,344 Members | 6,191 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,344 developers. It's quick & easy.

Replace query string by "/" delimeters

Hi Friends,

Any one know how to replace query string by slash delimeters, for example i want to replace query string

www.websiteurl.com/PageName.aspx?Param1=Attribute1&Param2=Attribute2

as

www.websiteurl.com/PageName.aspx/Attribute1/Attribute2

Thanks in advance
Aug 16 '09 #1
4 2599
Frinavale
9,735 Expert Mod 8TB
:) sure do!
Don't use the standard ASPX pages.

Look into using ASP.NET MVC. MVC stands for Model View Controller.

Your Models are your classes that contain the data that you want to display in your website.

Your Views are the ASPX pages (not your standard ones) that have no code behind, but only contain ASP code and HTML to so that you can display/interact with the data in the Model that the view is displaying.

Your Controllers are the components that handle user interaction, work with the model, and select a view to render that displays UI. They are responsible for responding to user action. The controller does not display the data in the model, it only triggers methods in the model which modify the data, and then pass the model into the view which displays the data.

You use the Global.asax file to set up how your URLs should be formatted so that the user can be directed to the correct Controllers, which will determine which View to use, which displays the data in the Model that the user is interacting with.


Check it out because it's really cool stuff :)
Aug 17 '09 #2
NitinSawant
270 100+
is it possible without using ASP.NET MVC,
coz i want to use the same in normal asp.net app
@ Frinavale
Aug 17 '09 #3
Frinavale
9,735 Expert Mod 8TB
Yes it's possible to do without using MVC.

I've never done it myself but the article "URL Rewriting in ASP.NET" explains how to do it.

-Frinny
Aug 17 '09 #4
Wow, good article, thank you Frinny.

I am reading article now, and i will try in my project.

-Vishwa
Aug 18 '09 #5

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by asd987 | last post: by
6 posts views Thread by Marty | last post: by
2 posts views Thread by Raterus | last post: by
11 posts views Thread by Lothar Behrens | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
1 post views Thread by Marylou17 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.