asp.net mvc - Redirect only Mobile devices with 51 Degrees -


i'm using 51 degrees in .net on mvc , it's come attention 51 degrees redirects tablets default classes ismobile.

i want redirect mobile traffic, ie phones etc , not tablets. tablets should using default "desktop" layout.

is there anyway can use (lite) 51 degrees redirect mobile traffic , not tablet traffic?

i don't know normal redirect configuration, can handle on server side. 51degrees adds "istablet" , "issmartphone" properties request.browser. appropriate:

var request = httpcontext.current.request; //or wherever you're getting bool smartphoneflag, tabletflag; bool.tryparse(request.browser["istablet"]) bool.tryparse(request.browser["issmartphone"])  if(smartphoneflag && !tabletflag) {     //redirect } //else continue on 

Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -