From MSDN article about device channels:

Also, device channels can set a JavaScript variable called effectiveDeviceChannel that contains the current channel alias. This variable can be used to show which channel is currently being used.

Is there similar variable, that could be used in code behind (in C#), to determine which channel is currently used?

  • What is the objective? Using a DeviceChannelPanel I think is the way to go in most cases (setting the IncludedChannels property to show or hide based on which channel the user is entering from) msdn.microsoft.com/en-us/library/… Jul 23, 2013 at 16:40

1 Answer 1

var effectiveMobileChannel = HttpContext.Current.Items["EffectiveMobileChannel"];

Source: from MSDN forum

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.