Check visitor use mobile device

giang le asked on June 10, 2014 06:20

Hi all! I want to using kentico function BrowserHelper.IsMobileDevice() to detect user view from mobile and i refer link below: http://devnet.kentico.com/articles/how-to-extend-mobile-device-redirection-web-part-possibilities

But i got a error "Object Reference Not Set To An Instance Of An Object...." only on mobile and on desktop work normally.

I tried Request.Browser.IsMobileDevice but i still got error.

Please help me!

Thank GiangLT3

Recent Answers


y y answered on June 11, 2014 03:05

may I ask you how you use those functions? I tried both and both of them work fine for me...

0 votesVote for this answer Mark as a Correct answer

giang le answered on June 11, 2014 03:09

Thank you for reply! I re-check and I had a confusion in my code then I corrected it and it work correct.

GiangLT3

1 votesVote for this answer Mark as a Correct answer

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