How to use the mobile redirection web part from code?

Kentico Support Engineer asked on November 30, 2012 13:02

How to use the mobile redirection web part from code?

Correct Answer

Kentico Support Engineer answered on November 30, 2012 13:02

To make the Mobile redirection web part work from code, you need to at least specify the following parameters:

<%@ Register Src="~/CMSWebParts/General/MobileDeviceRedirection.ascx" TagName="MobileRedirect" TagPrefix="cms" %>

<cms:MobileRedirect ID="MobileRedirect" runat="server" SmallDeviceRedirectionURL="~/Some_Path.aspx LargeDeviceRedirectionURL="~/Some_Path.aspx" RedirectAndroid="automatic" RedirectBlackBerry="automatic" RedirectIPad="automatic" RedirectIPhone="automatic" RedirectNokia="automatic" />
-jh-
0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.