FAQ Database Discussion Community


Asp.net Web API Routing by action name fix

asp.net-mvc,rest,asp.net-web-api,asp.net-routing
I found this article at asp.net Learn website. I use this article to help me to create an API method to search in the database by email and not id. However, if you take a look at the article, you will be able to help me fix my problem as...

Using Routing to return a WebForms page

c#,webforms,asp.net-5,asp.net-routing,asp.net-mvc-6
If I have a simple Default.aspx WebForms page under Views/WebForms/Default.aspx, how do I configure the MVC routing to open the Default.aspx page at startup? I've tried reading some articles regarding the MVC 6 routing, but I don't think they're mentioning anything about incorporating WebForms routing with the new MVC 6....

prettyPhoto doesn't work with ASP.NET URL routing

c#,asp.net,prettyphoto,asp.net-routing
I'm using prettyPhoto in my asp.net project. I have some issue. When i use url routing in my project, prettyPhoto doesn't work. Image opening on _self target (It doesn't seem as popup) If i don't use routing it's working fine. Do you have any idea? You can see my sample...

Manipulate the url using routing

asp.net-mvc,asp.net-routing
In my website I have the following route defined: routes.MapRoute( name: "Specific Product", url: "product/{id}", defaults: new { controller = "", action = "Index", id = UrlParameter.Optional } ); In that way I want customers to be able to add the ID of the product and go to the product...

How to get routevalues from URL with htmlhelpers or JavaScript?

javascript,asp.net,asp.net-mvc,asp.net-mvc-5,asp.net-routing
I have this MVC MapRoute routes.MapRoute( name: "Authenticated", url: "{controller}/{action}/{foo}/{bar}", defaults: new { controller = "Home", action = "WelcomePage", Foo = "0", Bar = "0" } ); And URL http://localhost/mysite/controller/action/2/1 How can I with JavaScript recieve the 2 and 1? I would prefer a solution with as little substring work...