470,619 Members | 2,077 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,619 developers. It's quick & easy.

Script in webpage

Hi

I have copied an ASP tutorial running on pocket IE.

1)
The ASP does not run on Pocket IE, comes-up with error:
No application associated with ..

2)
The script also appears in the webpage. Any ideas why????

Cheers
Clive

<%Response.Buffer=True%>
<HTML>
<HEAD><TITLE>New Purchase Order</TITLE></HEAD>
<BODY>
<FONT FACE="Tahoma">

<TABLE WIDTH=500 BORDER=0>
<% End If %>
<%
Dim oCn ' Database Connection
Dim oRs ' Recordset Object
Dim cSQL ' SQL Statement
' Open Database Connection
Set oCn = Server.CreateObject("ADODB.Connection")
oCn.Open "DSN=Housing;pwd=nopass;"
......etc
%>

<TR>
<TD><%=oRs("Name")%></TD>
</TR>

<TR>
<TD><%=oRs("Address")%></TD>
</TR>

<%
Loop
' Close Recordset
oRs.Close
Set oRs = Nothing
' Close Connection
oCn.Close
%></TABLE>

</FONT>
</BODY>
</HTML>
Jul 19 '05 #1
5 1909
> 1)
The ASP does not run on Pocket IE, comes-up with error:
No application associated with ..

2)
The script also appears in the webpage. Any ideas why????


You're accessing the ASP page using c:\whatever\file.asp or
\\server\share\file.asp instead of http://server/file.asp?

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
Jul 19 '05 #2
On 15 Dec 2003 07:08:17 -0800, cl************@yahoo.co.uk
(cl************@yahoo.co.uk) wrote:
Hi

I have copied an ASP tutorial running on pocket IE.

1)
The ASP does not run on Pocket IE, comes-up with error:
No application associated with ..

2)
The script also appears in the webpage. Any ideas why????


ASP has to be processed by a web server. Pocket IE isn't a web
server.

Jeff
Jul 19 '05 #3
Hi

I have modified the script to redirect to my computer (127.0.0.1)
<%
Dim strUserAgent
Dim strUserOS
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strUserOS = Request.ServerVariables("HTTP_UA-OS")
if (instr(1,strUserAgent, "Windows CE") > 0) then
Response.Redirect"mobilewincepage.asp"
if (instr(1, strUserOS, "POCKET PC")) then
Response.Redirect "http://BHHENVXP6401/zipcliveswan.asp"
end if
end if

%>

On my PC the ASP file is recognised, the Pocket PC has the ASP file as
an unrecognised symbol - the html file has a IE graphic.

I am trying to test the ASP file locally using my PC name!!!

Any further ideas???

Cheers

cl************@yahoo.co.uk (cl************@yahoo.co.uk) wrote in message news:<41**************************@posting.google. com>...
Hi

I have copied an ASP tutorial running on pocket IE.

1)
The ASP does not run on Pocket IE, comes-up with error:
No application associated with ..

2)
The script also appears in the webpage. Any ideas why????

Cheers
Clive

<%Response.Buffer=True%>
<HTML>
<HEAD><TITLE>New Purchase Order</TITLE></HEAD>
<BODY>
<FONT FACE="Tahoma">

<TABLE WIDTH=500 BORDER=0>
<% End If %>
<%
Dim oCn ' Database Connection
Dim oRs ' Recordset Object
Dim cSQL ' SQL Statement
' Open Database Connection
Set oCn = Server.CreateObject("ADODB.Connection")
oCn.Open "DSN=Housing;pwd=nopass;"
.....etc
%>

<TR>
<TD><%=oRs("Name")%></TD>
</TR>

<TR>
<TD><%=oRs("Address")%></TD>
</TR>

<%
Loop
' Close Recordset
oRs.Close
Set oRs = Nothing
' Close Connection
oCn.Close
%></TABLE>

</FONT>
</BODY>
</HTML>

Jul 19 '05 #4
On 15 Dec 2003 10:11:26 -0800, cl************@yahoo.co.uk
(cl************@yahoo.co.uk) wrote:
Hi

I have modified the script to redirect to my computer (127.0.0.1)
<%
Dim strUserAgent
Dim strUserOS
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strUserOS = Request.ServerVariables("HTTP_UA-OS")
if (instr(1,strUserAgent, "Windows CE") > 0) then
Response.Redirect"mobilewincepage.asp"
if (instr(1, strUserOS, "POCKET PC")) then
Response.Redirect "http://BHHENVXP6401/zipcliveswan.asp"
end if
end if

%>

On my PC the ASP file is recognised, the Pocket PC has the ASP file as
an unrecognised symbol - the html file has a IE graphic.

I am trying to test the ASP file locally using my PC name!!!

Any further ideas???
Yeah, read what we've been answering. Your Pocket PC isn't running a
web server. ASP doesn't work with just IE, it needs a web server to
process is. No matter what you do, or how you access the file, until
you install a web server on your Pocket PC you can't run ASP on it.

Jeff
cl************@yahoo.co.uk (cl************@yahoo.co.uk) wrote in message news:<41**************************@posting.google. com>...
Hi

I have copied an ASP tutorial running on pocket IE.

1)
The ASP does not run on Pocket IE, comes-up with error:
No application associated with ..

2)
The script also appears in the webpage. Any ideas why????

Cheers
Clive

<%Response.Buffer=True%>
<HTML>
<HEAD><TITLE>New Purchase Order</TITLE></HEAD>
<BODY>
<FONT FACE="Tahoma">

<TABLE WIDTH=500 BORDER=0>
<% End If %>
<%
Dim oCn ' Database Connection
Dim oRs ' Recordset Object
Dim cSQL ' SQL Statement
' Open Database Connection
Set oCn = Server.CreateObject("ADODB.Connection")
oCn.Open "DSN=Housing;pwd=nopass;"
.....etc
%>

<TR>
<TD><%=oRs("Name")%></TD>
</TR>

<TR>
<TD><%=oRs("Address")%></TD>
</TR>

<%
Loop
' Close Recordset
oRs.Close
Set oRs = Nothing
' Close Connection
oCn.Close
%></TABLE>

</FONT>
</BODY>
</HTML>


Jul 19 '05 #5
> I have modified the script to redirect to my computer (127.0.0.1)
<%
Dim strUserAgent
Dim strUserOS
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strUserOS = Request.ServerVariables("HTTP_UA-OS")
if (instr(1,strUserAgent, "Windows CE") > 0) then
Response.Redirect"mobilewincepage.asp"
if (instr(1, strUserOS, "POCKET PC")) then
Response.Redirect "http://BHHENVXP6401/zipcliveswan.asp"
end if
end if

%>


How about doing the processing on your computer (assuming
http://BHHENVXP6401/zipcliveswan.asp is your computer and you have a web
server running on it):

Put your code in... say default.asp on your computer
(http://BHHENVXP6401/default.asp):

<%
Dim strUserAgent
Dim strUserOS
strUserAgent = Request.ServerVariables("HTTP_USER_AGENT")
strUserOS = Request.ServerVariables("HTTP_UA-OS")
if (instr(1,strUserAgent, "Windows CE") > 0) then
Response.Redirect"mobilewincepage.asp"
if (instr(1, strUserOS, "POCKET PC")) then
Response.Redirect "zipcliveswan.asp"
end if
end if
%>

Put both pages (mobilewincepage.asp and zipcliveswan.asp) in the same
directory as default.asp.

Using your PocketPC, browse to http://BHHENVXP6401/default.asp.


Jul 19 '05 #6

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Andy R. | last post: by
3 posts views Thread by Vikram M Gautam | last post: by
2 posts views Thread by SimonC | last post: by
8 posts views Thread by Pete..... | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.