Share via

WebFormsFriendlyUrlResolver.TrySetMobileMasterPage Method

.NET Framework 4

Attempts to set the MasterPageFile property for the given page to a mobile specific master page.

Namespace:  Microsoft.AspNet.FriendlyUrls.Resolvers
Assembly:  Microsoft.AspNet.FriendlyUrls (in Microsoft.AspNet.FriendlyUrls.dll)


Protected Overridable Function TrySetMobileMasterPage ( _
    httpContext As HttpContextBase, _
    page As Page, _
    mobileSuffix As String _
) As Boolean
Dim httpContext As HttpContextBase 
Dim page As Page 
Dim mobileSuffix As String 
Dim returnValue As Boolean 

returnValue = Me.TrySetMobileMasterPage(httpContext, _
    page, mobileSuffix)
protected virtual bool TrySetMobileMasterPage(
    HttpContextBase httpContext,
    Page page,
    string mobileSuffix
virtual bool TrySetMobileMasterPage(
    HttpContextBase^ httpContext, 
    Page^ page, 
    String^ mobileSuffix
abstract TrySetMobileMasterPage : 
        httpContext:HttpContextBase * 
        page:Page * 
        mobileSuffix:string -> bool  
override TrySetMobileMasterPage : 
        httpContext:HttpContextBase * 
        page:Page * 
        mobileSuffix:string -> bool
protected function TrySetMobileMasterPage(
    httpContext : HttpContextBase, 
    page : Page, 
    mobileSuffix : String
) : boolean


Return Value

Type: System.Boolean
A boolean value indicating whether the master page was set.

See Also


WebFormsFriendlyUrlResolver Class

Microsoft.AspNet.FriendlyUrls.Resolvers Namespace