472,799 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,799 software developers and data experts.

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 1964
> 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Andy R. | last post by:
Hello everyone, I've spent quite some time now, looking for some information on how to get this done, sadly none has helped me much, though. I have a bit of java scrpt on a webpage (.php) to...
3
by: Vikram M Gautam | last post by:
hello, does any know of any php script which can change the language of the webpage on the fly, i have seen many websites which have several language options to choose from thanks
2
by: SimonC | last post by:
A couple of questions: (1) I have some PHP code that may take a while to execute - say 30-45 seconds or more - and I'm concerned that a browser may give up, and report an error because a page is...
1
by: Niko | last post by:
Hello, I want to retrieve the details of an SSL certificate of HTTPS websites, using openSSL, running on Windows 2003. This works fine as follows: openssl s_client www.somewebsite.com:443 >...
2
by: wonder | last post by:
Hi, How can I pass the url of the current webpage link to a python script in html? thanks sam
8
by: Pete..... | last post by:
Hi all I am working on a log in script for my webpage. I have the username and the password stored in a PostgreSQL database. The first I do is I make a html form, where the user can type in his...
4
by: Simon Wigzell | last post by:
My webpage assembles data from a database for display as an html webpage. I would to have the ability for my clients to have custom scripts to control the display. I would like the behaviour of...
2
by: noah.coffey | last post by:
Hello, I'm wanting to do something and I'm not sure if it's possible (I'd sure like it to be). I'm using a neat service called FeedSweep to aggregate a large list of XML/RSS/ATOM feeds. The...
14
by: jj | last post by:
Is it possible to call a remote php script from within Access? I'm thinking something like: DoCMD... http://www.domain.com/scripts/dataquery.php DoCmd.OpenQuery "update_data", acNormal, acEdit...
1
by: Patrick Cambre | last post by:
Hello all, I just registered with the forum. Glad to be with you all! During the last few days I have been improving my website with dropdown menus. I found this one at... ...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
by: erikbower65 | last post by:
Here's a concise step-by-step guide for manually installing IntelliJ IDEA: 1. Download: Visit the official JetBrains website and download the IntelliJ IDEA Community or Ultimate edition based on...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
5
by: DJRhino | last post by:
Private Sub CboDrawingID_BeforeUpdate(Cancel As Integer) If = 310029923 Or 310030138 Or 310030152 Or 310030346 Or 310030348 Or _ 310030356 Or 310030359 Or 310030362 Or...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: lllomh | last post by:
How does React native implement an English player?
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.