Tagged Questions
0
votes
0answers
10 views
Removing a controller name from a URL in MVC4
I'm dynamically constructing URLs to pass to a jQuery button click event handler.
The URL comes from a modal window definition:
<div class="modal hide fade in" id="modal-view-tenant-profile"
...
1
vote
1answer
37 views
How can I route requests to a page controller for routes that don't exists in ASP.NET MVC 4
How can I route requests to a default PageController for routes that do not map to a controller or action? But for routes that do match a controller or action, have those behave as normal, using ...
2
votes
2answers
53 views
MVC4: url routing with email as parameter
I have this url which works absolutely fine on my VS web server
http://localhost:4454/cms/account/edituser/[email protected] (works)
but when I publish this site to IIS7.5 , it simply throws 404.
...
0
votes
2answers
30 views
ASP.NET MVC URL Routing with ControllerName/ExampleID
i'm getting this error when i'm navigate browser to url:
localhost:10793/RealEstates/10
this my RouteConfig code:
public class RouteConfig
{
public static void ...
3
votes
1answer
31 views
Using url values as variables in route values
I want to declare multiple versions of an API inside different controllers in ASP.NET MVC. Is it possible to do something like this?
routes.MapRoute(
"Default", // Route name
...
1
vote
2answers
32 views
Where MVC select routing?
I use MVC4, I look for event handler in which is made decision about usage route? When this event happend?
There is registration all routes (in Application_Start() event)
...
1
vote
0answers
45 views
ASP.NET MVC Routing issue with action parameters
I'm fairly new to MVC4, and I'm having a problem getting a custom route off the ground.
I don't want to explain what my end goal is, since it's fairly complicated, but right now I simply want this ...
1
vote
1answer
26 views
Another ASP to MVC migration > routes
Migrating our classic ASP site to ASP.Net 4.5 MVC. Our site is pretty large, hundreds of file, and SEO optimized. All URLs are SEO friendly, via web.config, eg.:
...
1
vote
1answer
32 views
Mvc routing and numeric view names
I have an area with a History folder that I have views for each year in. The views are called for example Year2010, Year2011 etc and are just used to display historical data. I tried to call them ...
0
votes
1answer
56 views
ASP MVC 4 not processing static files
I put a sub directory in my ASP MVC 4 application called "Protected" and I dropped a simple test.html file in that directory, but I cannot for the life of me figure out how to get my custom, global ...
1
vote
2answers
53 views
Parameters dictionary contains a null entry for parameter
I am having two view pages using the same controller and model as a way to change the page layout but i am having trouble displaying my second page. This is my error message: The parameters dictionary ...
0
votes
1answer
20 views
MVC Routing: Creating sub folders
In my current project I have quite a lot of customer things going on, so I wanted to organise it accordingly.
I wanted my controllers to look like the following:
...
1
vote
1answer
33 views
How do I mix short URLs and regular URLs in ASP.NET MVC?
I have a site with the normal, default route and several controllers. I would like to distribute "short URL" links that can link back to the home/index action. For example, I can do
/MySite - takes ...
0
votes
1answer
43 views
C# ASP .Net MVC 4 variable length route mapping
I need a variable length route mapping in asp.net mvc 3. From my understanding I can map routes like this:
routes.MapRoute(
"Default", // Route name
...
0
votes
1answer
45 views
Routing with and without controller name in ASP.NET MVC 4
I'm using ASP.NET MVC 4 and I have some problems settings up my routes. Could you tell my how to set up my routes to point urls to actions as follows:
"/" (or "/Start") => PublicController.Start()
...