RE: Mobile enabling MVC application

2016-06-13 Thread Adrian Halid
Thanks for the link I will check it out. With most things there is not just one right way to do it. It really depends on the use case. I guess if you don’t expect the view port size to change when used you should keep the html size as small as possible. Regards Adrian Halid

RE: Mobile enabling MVC application

2016-06-13 Thread David Smith
I’ve made use of DisplayModeProvider to provide mobile/desktop versions of pages that needed different versions. http://www.hanselman.com/blog/MakingASwitchableDesktopAndMobileSiteWithASPNETMVC4AndJQueryMobile.aspx David From: ozdotnet-boun...@ozdotnet.com

Re: Mobile enabling MVC application

2016-06-13 Thread Wallace Turner
>1. Would you use server side logic to determine the screen size and output the relevant html? I would lean this way instead of 2) Its a difficult (to make a decision) issue... I just try and be pragmatic as possible.. yes I know with leaning toward 1) its no longer purely responsive but

RE: Mobile enabling MVC application

2016-06-13 Thread Adrian Halid
Media queries are great to change a multi column layout (for desktop) into a single column layout (for mobile). Bootstrap is great for this. CSS rules are automatically applied without refreshing the page. @Wallace Turner How would you handle more complex UI where you may need to change

Re: Mobile enabling MVC application

2016-06-13 Thread Wallace Turner
when applicable (and with the usual disclaimers) i like to use response web design [1] which at its core uses CSS media queries to layout the page based on the browser dimensions. Bootstrap may be useful for helping you achieve this goal. If you are not using Bootstrap already (and i suspect you

Mobile enabling MVC application

2016-06-13 Thread Tom Rutter
Hi Folks, I have an existing MVC application that I need to "mobile enable". Same functionality but the mobile versions of the pages will need to be different in look and feel. What are the current ways of doing this sort of thing? Detect the device type and redirect to the mobile versions of the