Export (0) Print
Expand All

UrlHelper Class

Contains methods for building URLs for ASP.NET MVC within your application.

Namespace:  System.Web.Mvc
Assembly:  System.Web.Mvc (in System.Web.Mvc.dll)

public class UrlHelper

The UrlHelper class provides the following methods to help you work with URLs.

  • Action: Generates a URL that maps to a action method.

  • RouteUrl: Generates a URL that maps to a route.

  • Content: Generates a URL path to a resource given its virtual (relative) path.

  • Encode: Encodes a specified URL.

System.Object
  System.Web.Mvc.UrlHelper

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Community Additions

Show:
© 2014 Microsoft