473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 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 1982
> 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... ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.