Gets the URL that corresponds to a set of route parameters.
Assembly: System.Web (in System.Web.dll)
Public Function GetRouteUrl ( _
routeParameters As Object _
) As Stringpublic string GetRouteUrl(
Object routeParameters
)public:
String^ GetRouteUrl(
Object^ routeParameters
)member GetRouteUrl :
routeParameters:Object -> string
Parameters
- routeParameters
- Type: System
. . :: . Object
The route parameters.
This method is provided for coding convenience. It is equivalent to calling the RouteCollection
The following example shows how to call the Control
HyperLink1.NavigateUrl = HyperLink1.GetRouteUrl(
New With {.productid = "1", .category = "widgets"})HyperLink1.NavigateUrl = HyperLink1.GetRouteUrl(
new { productid = "1", category = "widgets" });Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.