KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have the following in my Global.asax.cs routes.MapRoute( "Arrival", "{partnerID}", new { controller = "Search", action = "Index", partnerID="1000" } ); routes.MapRoute( "Default", "{controller}/{action}/{id}", new { controller = "Home", action = "Index", id = "" } ); My SearchController looks like this public class SearchController : Controller { // Display search results public ActionResult Index(int partnerID) { ViewData["partnerID"] = partnerID; return View(); } } and Index.aspx simply shows ViewData["partnerID"] at the moment. I have a virtual directory set up in IIS on Windows XP called Test. If I point my browser at http://localhost/Test/ then I get 1000 displayed as expected. However, if I try http://localhost/Test/1000 I get a page not found error. Any ideas? Are there any special considerations for running MVC in a virtual directory?
Tags (comma-separated)
Save Edits
Cancel