.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

Webforms routing with ASP.NET4

Posted By: Jack Hard     Posted Date: November 08, 2012    Points:5   Category :ASP.Net

I need to provide a pageId on every URL however I don't need the user to see this pageId. For example

http://{domain}/{product-name}/{product-id}/{pageid} <-- I don't want to provide this

I have in my Global.asax:

routes.MapPageRoute("route-name", "path/{productName}/{product-id}", "~/ProductPage.aspx");

Is there some way to configure this route so it has a "hard coded" parameter page id for example something like this ---

routes.MapPageRoute("route-name", "path/{productName}/{product-id}", "~/ProductPage.aspx?pageid=1");


No response found. Be the first to respond this post
Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend