Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...redirecting mobile browsersredirecting mobile browsers
Previous
 
Next
New Post
1/21/2011 12:17 PM
 
I am trying to redirect mobile browsers to a test page by inserting the redirect script in the header part of a page like so:

if (Request.Browser["IsMobileDevice"] == "true" )
{
    Response.Redirect("http://www.mobile.aspx");
}

-Is this the best way of doing it?
Or should I list all browser types?
Do I need to nest this code in < script> tags?

thanks.

 
New Post
1/21/2011 7:35 PM
 
You could do it this way, but I hope you mean in the header of your skin, and not the Default.aspx.  The default page is part of the core of DNN, so it would be forking your code - which you'd have to merge with all future upgrades of DNN.

I'd instead consider building a module to do pretty much the same thing, based on the User Agent header.  However, you'd probably save some man hours (and/or money) by using an existing extension to do this for you, such as:


Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
New Post
1/24/2011 8:25 AM
 
Thanks for the reply,

I'm not sure of the benefit of EasyDNNMobileRedirect - isn't it just like inserting a redirect into a Text/HTML module and applying to all pages?

As for MobiNuke - it was claimed by some to be unreliable, with bugs and lack of support:
http://www.dotnetnuke.com/Resources/F...
- not sure if this is still the case though?
 
New Post
1/24/2011 8:26 AM
 
Thanks for the reply,

I'm not sure of the benefit of EasyDNNMobileRedirect - isn't it just like inserting a redirect into a Text/HTML module and applying to all pages?

As for MobiNuke - it was claimed by some to be unreliable, with bugs and lack of support:
http://www.dotnetnuke.com/Resources/F...
- not sure if this is still the case though?
 
New Post
1/24/2011 11:13 AM
 
Like with anything else, these are common "build or buy" questions that you really need to consider before committing to a path.  It sounds to me that you might be better off building on your own.  In my opinion, this would be best built as a module with an HttpModule back-end.  The module portion would allow you to set configuration options, and the HttpModule portion would handle any redirects.  However, you may want to also consider project requirements for customizing the user experience based on the User Agent.  This is something that could be accomplished through some clever skinning methods.

I'd suggest trying out MobiNuke first and shooting a quick support question to them.  In the end, you might spend around $100 with them - but your man hours would be much more than that if you build this yourself.

Will Strohl

Upendo Ventures Upendo Ventures
DNN experts since 2003
Official provider of the Hotcakes Commerce Cloud and SLA support
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...redirecting mobile browsersredirecting mobile browsers


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out