Top "Urlhelper" questions

Redirect with CodeIgniter

Can anyone tell me why my redirect helper does not work the way I'd expect it to? I'm trying to …

php codeigniter redirect urlhelper
Call UrlHelper in models in ASP.NET MVC

I need to generate some URLs in a model in ASP.NET MVC. I'd like to call something like UrlHelper.…

asp.net-mvc urlhelper
ASP.NET MVC: Unit testing controllers that use UrlHelper

One of my controllers actions, one that is being called in an Ajax request, is returning an URL to the …

asp.net-mvc unit-testing urlhelper
How do I Access the RequestContext Outside the Controller?

Background I am trying to move business logic out from the controllers into their own services. Controller public class AccountController : …

asp.net-mvc dependency-injection urlhelper requestcontext
Generating Route Url to MVC controller action from WebAPI

I'm used to generating route URLs to other controller actions within an MVC controller action using something similar to below: …

asp.net-mvc asp.net-mvc-4 asp.net-web-api asp.net-mvc-routing urlhelper
Using Html.ActionLink and Url.Action(...) from inside Controller

I want to write an HtmlHelper to render an ActionLink with pre-set values, eg. <%=Html.PageLink("Page 1", "page-slug");%> …

asp.net-mvc html-helper actionlink urlhelper html.actionlink
Use Separate js File And use Url Helpers in it with ASP.NEt MVC 3 and Razor View Engine

I ask a similar question here and Darin Dimitrov answer that we can't use Url helper like $.ajax({ url: '@…

javascript asp.net-mvc asp.net-mvc-3 razor urlhelper
ASP.NET Core UrlHelper and how it works

I'm rather new to ASP.NET Core, and right now I am trying to get a grasp on how UrlHelper …

c# api asp.net-core urlhelper
Resolve virtual path in MVC

Hi, I got a adress like this : ~/Content/Files/AdImages/20/20_thumb.jpeg, I need this to be resolved. This was …

asp.net-mvc url resolve urlhelper
Url helper for full url in asp.net mvc-3

Writing @Url.Content("~/Something/Something.html") in razor renders /AppFolder/Something/Something.html Is there a way to render the …

asp.net urlhelper asp.net-mvc-3