Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > PDA wireless

Reply
Thread Tools

PDA wireless

 
 
displayname
Guest
Posts: n/a
 
      06-16-2008
I have a Web application that is written in ASP. It runs well on regular PC.
What is needed to make it run on PDA (wireless)? I want to buy a new PDA to
test the application. Is there a particular brand of PDA or operating system
that I should buy? Thanks.
 
Reply With Quote
 
 
 
 
Tim Slattery
Guest
Posts: n/a
 
      06-16-2008
displayname <> wrote:

>I have a Web application that is written in ASP. It runs well on regular PC.
>What is needed to make it run on PDA (wireless)? I want to buy a new PDA to
>test the application. Is there a particular brand of PDA or operating system
>that I should buy? Thanks.


ASP runs on the web server, not the client. What kind of client you
use to access the server should make no difference to the app.

--
Tim Slattery
MS MVP(Shell/User)

http://members.cox.net/slatteryt
 
Reply With Quote
 
 
 
 
displayname
Guest
Posts: n/a
 
      06-16-2008
Tim, are you saying that I don't need to change any thing in my code and the
application will run on PDA as if it runs on IE7 on my PC? What about the
font size? May be I need to change all font size to smaller and make the page
a lot smaller so it can fit on PDA screen, right? But then I want to page to
be big to fill the enter screen on my PC. What's the code for detecting
whether it's PDA or PC in order to change the font size and page size
accordingly?

Which PDA (what features...) do you recommend me purchase to test out the
app? Thanks.

"Tim Slattery" wrote:

> displayname <> wrote:
>
> >I have a Web application that is written in ASP. It runs well on regular PC.
> >What is needed to make it run on PDA (wireless)? I want to buy a new PDA to
> >test the application. Is there a particular brand of PDA or operating system
> >that I should buy? Thanks.

>
> ASP runs on the web server, not the client. What kind of client you
> use to access the server should make no difference to the app.
>
> --
> Tim Slattery
> MS MVP(Shell/User)
>
> http://members.cox.net/slatteryt
>

 
Reply With Quote
 
Tim Slattery
Guest
Posts: n/a
 
      06-16-2008
displayname <> wrote:

>Tim, are you saying that I don't need to change any thing in my code and the
>application will run on PDA as if it runs on IE7 on my PC? What about the
>font size? May be I need to change all font size to smaller and make the page
>a lot smaller so it can fit on PDA screen, right? But then I want to page to
>be big to fill the enter screen on my PC. What's the code for detecting
>whether it's PDA or PC in order to change the font size and page size
>accordingly?


There might be something in the USER_AGENT string
(request.ServerVariables("HTTP_USER_AGENT") ). I don't think the
server will get any other indication of what the client is.

--
Tim Slattery
MS MVP(Shell/User)

http://members.cox.net/slatteryt
 
Reply With Quote
 
Adrienne Boswell
Guest
Posts: n/a
 
      06-17-2008
Gazing into my crystal ball I observed =?Utf-8?B?ZGlzcGxheW5hbWU=?=
<> writing in
news:B109347E-00FD-4C80-A618-:

> Tim, are you saying that I don't need to change any thing in my code
> and the application will run on PDA as if it runs on IE7 on my PC?


ASP knows nothing about the client, whether it's a browser, PDA, phone,
or refrigerator.

> What about the font size? May be I need to change all font size to
> smaller and make the page a lot smaller so it can fit on PDA screen,
> right?


No, let the user's UA decide what font size to use. Do not set a font
size at all.

> But then I want to page to be big to fill the enter screen on
> my PC.


You might want to look at the @media directive for CSS, @media screen,
@media handheld, @media print, etc., eg:

@media screen /* for browsers */
{
body {font-size:95%}
}

@media handheld
{
body {font-size:100%}
}

@media print
{
body {font-size:10pt}
#nav {display:none}
}

> What's the code for detecting whether it's PDA or PC in order
> to change the font size and page size accordingly?


As others have said, look at the UA string. You might want to see if
you can find a simulator. There is a phone simulator from Openwave that
can get you started.

>
> Which PDA (what features...) do you recommend me purchase to test out
> the app? Thanks.
>
> "Tim Slattery" wrote:
>
>> displayname <> wrote:
>>
>> >I have a Web application that is written in ASP. It runs well on
>> >regular PC. What is needed to make it run on PDA (wireless)? I want
>> >to buy a new PDA to test the application. Is there a particular
>> >brand of PDA or operating system that I should buy? Thanks.

>>
>> ASP runs on the web server, not the client. What kind of client you
>> use to access the server should make no difference to the app.
>>
>> --
>> Tim Slattery
>> MS MVP(Shell/User)
>>
>> http://members.cox.net/slatteryt
>>




--
Adrienne Boswell at Home
Arbpen Web Site Design Services
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

 
Reply With Quote
 
Dooza
Guest
Posts: n/a
 
      06-17-2008
displayname wrote:
> I have a Web application that is written in ASP. It runs well on regular PC.
> What is needed to make it run on PDA (wireless)? I want to buy a new PDA to
> test the application. Is there a particular brand of PDA or operating system
> that I should buy? Thanks.


I have done this before, we have mobile 2006 PDAs that run IE, my ASP
applications (for stock takes as the PDAs have barcode scanners) work
very well on this platform.

I make the page the right size for the PDAs, but could have used a
different CSS file for it if I wanted to use on normal PCs.

The application also logs onto the local domain to pass the user into
the application. That works well too.

Steve
 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      06-17-2008
Adrienne Boswell wrote on 17 jun 2008 in
microsoft.public.inetserver.asp.general:

> ASP knows nothing about the client, whether it's a browser, PDA, phone,
> or refrigerator.


Use ASAP:

<% Mail = "More Ice, ASAP!"%>
<a href='mailto:refrigerator@me?subject=<%=Mail%>&bod y=<%=Mail%>'>
Hot, hot!</a>

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
Evertjan.
Guest
Posts: n/a
 
      06-17-2008
Adrienne Boswell wrote on 17 jun 2008 in
microsoft.public.inetserver.asp.general:

> @media handheld
> {
> body {font-size:100%}
>}
>


Seems to be working according to:
<http://www.codestyle.org/css/media/handheld-BrowserSummary.shtml>

Anyone with practical experience?

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
 
Reply With Quote
 
displayname
Guest
Posts: n/a
 
      06-17-2008
Thank you all for replying. Let me see if I understand you correctly.

Use request.ServerVariables("HTTP_USER_AGENT") to determine the kind of
client.
If the client is PDA, then use the @media handheld {body {font-size:100%}}
style
to display a smaller font size.
If the client is PC, then use @media screen {body {font-size:95%}} style for
bigger font size.

Shouldn't the font size for PDA be 95% (for smaller font) and for PC be 100%
(for bigger font)?

I thought the user agent only lets you know whether it's "Mozilla/2.0" or IE
kind of information. It doesn't tell you whether the client is PDA or PC
which I need to know.



"Dooza" wrote:
> I have done this before, we have mobile 2006 PDAs that run IE, my ASP
> applications (for stock takes as the PDAs have barcode scanners) work
> very well on this platform.


So PDA can have IE, that's good.

> I make the page the right size for the PDAs, but could have used a
> different CSS file for it if I wanted to use on normal PCs.


So you do change the font size for the PDA.

> The application also logs onto the local domain to pass the user into
> the application. That works well too.


That sounds like I need to do something additional to make the ASP
application pass the user into the app? I thought everyone else said I
wouldn't have to change any thing and the app would run on any client (like
PDA) because ASP runs on the server. My app uses IIS with Integrated
authentication. IIS authenticates the user passes the user id to the app. I
want it to continue doing the same thing in PDA. Do I need to change any
thing?

I have one more question regarding wireless network for the PDA. Do I need
to have a port open on the app server or on the wireless network to allow the
app to run on the PDA wirelessly? I've never worked with wireless nor PDA and
have no clue how things work in that environment.


 
Reply With Quote
 
Dooza
Guest
Posts: n/a
 
      06-17-2008
displayname wrote:
> Thank you all for replying. Let me see if I understand you correctly.
>
> Use request.ServerVariables("HTTP_USER_AGENT") to determine the kind of
> client.
> If the client is PDA, then use the @media handheld {body {font-size:100%}}
> style


You don't need to detect the user agent string, just use:

<LINK rel="stylesheet" type="text/css" media="handheld" href="handheld.css">
<LINK rel="stylesheet" type="text/css" media="screen" href="screen.css">

http://www.w3.org/TR/REC-CSS2/media.html

Steve
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need advice on how to configure a wireless network using PDA and wireless router Polaris431 Wireless Networking 1 10-09-2007 03:46 PM
Connecting to wireless PDA =?Utf-8?B?VG9tIE1leWVy?= Wireless Networking 3 12-17-2005 04:45 PM
Wireless Access Point for PDA =?Utf-8?B?Ym9i?= Wireless Networking 1 10-11-2004 10:01 AM
Wireless Networkng with PDA Ed Wireless Networking 6 10-01-2004 05:09 PM
Windows PDA applications or ASP.NET web PDA applications?? Anil ASP .Net Mobile 1 07-31-2004 08:38 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57