- Add a view port meta tag <meta name ="viewport" content = "width=device-width">
- Fix it on the client
- custom css
- media css
- adapative rendering
- Changing unordered list to dropdown as width is reduced .. use opt group of html
- Dynamically change based on screen size mediaqueri.es
- Fix it on the Client
- Pros
- optimized for the current size
- less duplication of efforts
- Cons
- doesn't consider the differences between mobile and desktop
- inefficient bandwidth usage
- Fix it on the server
- custom mobile views using display modes
- jquery mobile (comes with asp.net mvc 4)
- Make new page with new scripts and css for the mobile page
- Mobile Master Page
- Mobile Child page
- data-role = "content".. tell html5 elements and jquery mobile takes care of the look it has to appear
- data-theme .. can be downloaded from jquery mobile ..
- jquery.mobile.mvc .. nuget package ..
- view switcher .. (mobile version to desktop version & vice versa)
- Ctrl + , to find code or navigate in visual studio ..
- jquery mobile can do data filtering ..
- Pros
- maximum flexibility
- less duplication of efforts
- Cons
- can be repetitive
- device detection can be hard
- Jquery Metro Mobile Theme
- 51degrees.mobi (nuget packaage available)
- Web Sites vs Web Applications
- Offline Capability
- knockout.js for data binding
- static resources for caching .. as cache manifest
I blog whenever i find things to remember and which are interesting when i am working/learning. I am happy if these experiences are useful to someone else too :) . Please feel free to suggest/correct. These are just out of my experiences . So they may be always a better way to do them ! I view life as a continuous learning experience !!
Tuesday, June 5, 2012
asp.net mobile
some random notes about mobile development from asp.net videos of scott hansleman
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment