ASP. net mvc: UrlHelper

Source: Internet
Author: User
Http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.action.aspx
UrlHelper. Action Method

This page is specific to:. NET Framework Version: 3.54

Generates a fully qualified URL to an action method.

Overload List


  Name Description
Action (String) Generates a fully qualified URL to an action method by using the specified action name.
Action (String, Object) Generates a fully qualified URL to an action method by using the specified action name and route values.
Action (String, String) Generates a fully qualified URL to an action method by using the specified action name and controller name.
Action (String, RouteValueDictionary) Generates a fully qualified URL to an action method for the specified action name and route values.
Action (String, String, Object) Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
Action (String, String, RouteValueDictionary) Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
Action (String, String, Object, String) Generates a fully qualified URL to an action method by using the specified action name, controller name, route values, and protocol to use.
Action (String, String, RouteValueDictionary, String, String) Generates the fully qualified URL for an action method by using the specified action name, controller name, route values, protocol to use, and host name.

TopRemarks

The URL returned by this method will be similar to "\ Home \ About ". if you need the URL encoded, use the Encode method, which wocould return "% 2 fHome % 2 fAbout" given the foregoing URL.

See Also


ReferenceUrlHelper ClassUrlHelper MembersSystem. Web. Mvc Namespace

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.