ASP.NET MVC : UrlHelper

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
Public method Action(String) Generates a fully qualified URL to an action method by using the specified action name.
Public method Action(String, Object) Generates a fully qualified URL to an action method by using the specified action name and route values.
Public method Action(String, String) Generates a fully qualified URL to an action method by using the specified action name and controller name.
Public method Action(String, RouteValueDictionary) Generates a fully qualified URL to an action method for the specified action name and route values.
Public method Action(String, String, Object) Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
Public method Action(String, String, RouteValueDictionary) Generates a fully qualified URL to an action method by using the specified action name, controller name, and route values.
Public method 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.
Public method 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.
Top
Remarks

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

See Also

Reference

posted @ 2010-02-05 10:50  陈希章  阅读(700)  评论(0编辑  收藏  举报