Creating a mini-site in ASP.NET that works on Blackberry, Windows Mobile, and iPhone -


i'm working on asp.net website targets desktop browsers. want enable optional mobile view (e.g. http://m.sample.com) offer few simple pages text. there not need ajax or javascript, , there's no user input - it's tables of text few links navigate between pages.

what's best way set work on blackberry, windows mobile, , iphone?

should looking @ asp.net mobile support, or rolling own pages?

update: m.microsoftpdc.com. went /mobile subfolder approach, , used scott hanselman's iphone tips viewport , other stuff.

i have done in past , way did separating pages creating directory desktop , creating directory mobile. gives better separation of views, since in reality lot different. in asp.net forms used model view presenter pattern lot since went way asp.net forms functioned best. way reuse code between 2 views. in index.aspx page site, parse user-agent string of request figure out browser , redirect accordingly. so, example person iphone comes site, parse user-agent string , figure out iphone. redirect m.sample.com pointing mobile/index.aspx page. otherwise redirect desktop/index.aspx.

i did parsing of user-agent string @ page level, of course kind of logic in httpmodule or httphandler level also.

edit

i rolled own pages since weren't targeting phones have wml support. reason in opinion use asp.net mobile support, if want support wml enabled phones also.


Comments

Popular posts from this blog

c++ - How do I get a multi line tooltip in MFC -

asp.net - In javascript how to find the height and width -

c# - DataTable to EnumerableRowCollection -