Saturday, March 24, 2012

Mobile ASP.NET

I've come across numerous mobile phones with which ASP.NET pages can
be accessed on the Internet. Then why has Microsoft developed a
separate programming model to create ASP.NET apps for mobile devices
when regular ASP.NET pages can be accessed from mobile devices?

RonOn Wed, 17 Oct 2007 19:36:59 -0700, rn5a@.rediffmail.com wrote:

Quote:

Originally Posted by

>I've come across numerous mobile phones with which ASP.NET pages can
>be accessed on the Internet. Then why has Microsoft developed a
>separate programming model to create ASP.NET apps for mobile devices
>when regular ASP.NET pages can be accessed from mobile devices?
>
>Ron


I believe you are referring to Mobile Web Forms, that can be added to
asp.net websites that target mobile devices

--
http://bytes.thinkersroom.com
On Oct 18, 4:52 am, "Rad [Visual C# MVP]" <r...@.nospam.comwrote:

Quote:

Originally Posted by

On Wed, 17 Oct 2007 19:36:59 -0700, r...@.rediffmail.com wrote:

Quote:

Originally Posted by

I've come across numerous mobile phones with which ASP.NET pages can
be accessed on the Internet. Then why has Microsoft developed a
separate programming model to create ASP.NET apps for mobile devices
when regular ASP.NET pages can be accessed from mobile devices?


>

Quote:

Originally Posted by

Ron


>
I believe you are referring to Mobile Web Forms, that can be added to
asp.net websites that target mobile devices
>
--http://bytes.thinkersroom.com


Yes Rad I am referring to Mobile Web Forms only. When the conventional
Web Forms can be accessed from mobile devices (for e.g. mobile
phones), why has Microsoft developed a separate programming model to
create Mobile Web Forms when the usual Web Forms can be accessed from
mobile devices?

Thanks,

Ron
On Thu, 18 Oct 2007 04:09:57 -0700, rn5a@.rediffmail.com wrote:

Quote:

Originally Posted by

Quote:

Originally Posted by

>I believe you are referring to Mobile Web Forms, that can be added to
>asp.net websites that target mobile devices
>>
>--http://bytes.thinkersroom.com


>
>Yes Rad I am referring to Mobile Web Forms only. When the conventional
>Web Forms can be accessed from mobile devices (for e.g. mobile
>phones), why has Microsoft developed a separate programming model to
>create Mobile Web Forms when the usual Web Forms can be accessed from
>mobile devices?
>
>Thanks,
>
>Ron


True, some mobile devices such as PDAs can access normal web forms,
the same assumptions cannot be made for all mobile devices, like WAP
phones for instance.

These may not support web protocols, or web browsers to the extent of
being able to render faithful ASP.NET forms.

Mobile Web Forms I imagine are the "least common denominator"

--
http://bytes.thinkersroom.com

Quote:

Originally Posted by

--Original Message--
From: Rad [Visual C# MVP] [mailto:rad@.nospam.com]
Posted At: Friday, 19 October 2007 1:42 AM
Posted To: microsoft.public.dotnet.framework.aspnet
Conversation: Mobile ASP.NET
Subject: Re: Mobile ASP.NET
>
On Thu, 18 Oct 2007 04:09:57 -0700, rn5a@.rediffmail.com wrote:
>

Quote:

Originally Posted by

Quote:

Originally Posted by

I believe you are referring to Mobile Web Forms, that can be added


to

Quote:

Originally Posted by

Quote:

Originally Posted by

asp.net websites that target mobile devices
>
--http://bytes.thinkersroom.com


Yes Rad I am referring to Mobile Web Forms only. When the


conventional

Quote:

Originally Posted by

Quote:

Originally Posted by

Web Forms can be accessed from mobile devices (for e.g. mobile
phones), why has Microsoft developed a separate programming model to
create Mobile Web Forms when the usual Web Forms can be accessed from
mobile devices?

Thanks,

Ron


>
True, some mobile devices such as PDAs can access normal web forms,
the same assumptions cannot be made for all mobile devices, like WAP
phones for instance.
>
These may not support web protocols, or web browsers to the extent of
being able to render faithful ASP.NET forms.
>
Mobile Web Forms I imagine are the "least common denominator"
>
--
http://bytes.thinkersroom.com


So how do you tell that a request has come from a mobile phone ?

A user can type any value into a url. They don't know if the website has
been setup for Mobile Web Forms.
On Fri, 19 Oct 2007 04:14:51 +1000, "Ian Semmel"
<anyone@.rocketcomp.com.auwrote:

Quote:

Originally Posted by

>
>So how do you tell that a request has come from a mobile phone ?
>
>A user can type any value into a url. They don't know if the website has
>been setup for Mobile Web Forms.
>


Targeting mobile devices is something that you have to design into
your solution from the very beginning.

Due to the constraints of screen size, supported controls, and so on,
a common strategy is to build two completely different sites so for
instance your main site would be www.mysite.com and then you have a
sub domain for your mobile devices , www.wap.mysite.com
For the www.wap.mysite.com you would then build an asp.net site
entirely with mobile web forms. However you can share much of the data
access logic.

If you wanted to you could force a mobile user who inadvertently
wanders to the main site back to the WAP, perhaps in the authenticate
request method.

What you do is query the Request.IsMobileDevice property and redirect
as appropriate

--
http://bytes.thinkersroom.com

0 comments:

Post a Comment