473,387 Members | 3,750 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,387 software developers and data experts.

Running ASP pages offline on any machine

Hi

I have a few asp pages that I plan to burn to a CD so the pages can be
navigated without an internet connection. I have just realised that the
pages might not run that well, if at all, as they contain ASP script.

Firstly, do the code snippets I have attached at the bottom of this post
contain any non ASP code (i.e. ASP.NET code)?

Secondly, what is the best method for getting the pages to run straight from
disk? I have found this site:
http://www.eztools-software.com/tools/hsp/default.asp but wanted to see if
there was any better ideas out there.

Regards, Carl Gilbert

<%

spacer = "images\misc\spacer.gif"
filler = "images\misc\filler.gif"
line_end = "images\misc\line_end.gif"
btn_previous = "images\misc\previous.gif"
btn_next = "images\misc\next.gif"
btn_contents = "images\misc\contents.gif"
btn_summary = "images\misc\summary.gif"
int_g = request.QueryString("g")
int_sg = request.QueryString("sg")
int_sgmax = request.QueryString("sgmax")
int_i = request.QueryString("i")
int_imax1 = request.QueryString("imax1")
int_imax2 = request.QueryString("imax2")

int_g = CInt(int_g)
int_sg = CInt(int_sg)
int_sgmax = CInt(int_sgmax)
int_i = CInt(int_i)
int_imax1 = CInt(int_imax1)
int_imax2 = CInt(int_imax2)

'set the max number of images based on the sub group
If int_sg = 1 Then
int_mymax = int_imax1
Else
int_mymax = int_imax2
End If

'b1 = previous
'b2 = next
'b3 = contents
'b4 = summary

If int_i = 0 Then
'we are dealing with a group

'set the previous button
If int_sg > 1 Then b1 = 80 Else b1 = 0

'set the next button
If Not int_sg = int_sgmax Then s1 = 10 Else s1 = 0
If Not int_sg = int_sgmax Then b2 = 80 Else b2 = 0

Else
'We are dealing with an image

'set the previous button
If int_i > 1 Then b1 = 80 Else b1 = 0

'set the next button
If Not int_i = int_mymax Then s1 = 10 Else s1 = 0
If Not int_i = int_mymax Then b2 = 80 Else b2 = 0

End If

'set the contents button
If Not int_i = 0 Then s2 = 10 Else s2 = 0
If Not int_i = 0 Then b3 = 80 Else b3 = 0

'set the summary button
If Not int_g = 0 Then s3 = 10 Else s3 = 0
If Not int_g = 0 Then b4 = 80 Else b4 = 0

h1 = 620 - (b1+s1+b2+s2+b3+s3+b4)

%>

<% If int_i = 0 Then %>
<TABLE width="800" height="533" border="0" align="center" cellpadding="0"
cellspacing="0" id="Table2" STYLE="border: 2 ridge #800000">
<% Else %>
<TABLE width="800" height="533" border="0" align="center" cellpadding="0"
cellspacing="0" id="Table3" STYLE="background-image:
url(images\bulk\g<%=int_g%>sg<%=int_sg%>i<%=int_i% >.jpg); border: 2 ridge
#800000">
<% End If %>
<% For x = 1 To 7
If x <= int_mymax Then %>
<TD width="80" height="80">
<A
href="ShowImage.asp?g=<%=int_g%>&sg=<%=int_sg%>&sg max=<%=int_sgmax%>&i=<%=x%>&imax1=<%=int_imax1%>&i max2=<%=int_imax2%>">
<IMG src="images\thumbs\th_g<%=int_g%>sg<%=int_sg%>i<%= x%>.jpg"
width="100%" height="100%" border="0">
</A>
</TD>
<% Else %>
<TD width="80" height="80"><IMG src="<%=spacer%>" width="100%"
height="100%" border="0"></TD> <% End If %>
<% If Not x = 7 Then %>
<TD width="10"><IMG src="<%=spacer%>" width="10"></TD>
<% End If %>
<% Next %>
Nov 19 '05 #1
4 2005
"Carl Gilbert" <mr*************@hotmail.com> wrote in
news:iM*****************@newsfe4-win.ntli.net:

Secondly, what is the best method for getting the pages to run
straight from disk? I have found this site:
http://www.eztools-software.com/tools/hsp/default.asp but wanted to
see if there was any better ideas out there.


Your code looks pretty straight forward... why not convert it to
Javascript?

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #2
I do not have the URL, but www.asp.net had a sample with their "Cassini"
server that could run an ASP.NET application from a CD. The "server" would
boot up off the CD and serve pages. Very neat.

For traditional ASP, there are third party tools for doing this. I do not
believe Cassini will serve up traditional ASP.

--
Gregory A. Beamer
MVP; MCP: +I, SE, SD, DBA

***************************
Think Outside the Box!
***************************
"Carl Gilbert" wrote:
Hi

I have a few asp pages that I plan to burn to a CD so the pages can be
navigated without an internet connection. I have just realised that the
pages might not run that well, if at all, as they contain ASP script.

Firstly, do the code snippets I have attached at the bottom of this post
contain any non ASP code (i.e. ASP.NET code)?

Secondly, what is the best method for getting the pages to run straight from
disk? I have found this site:
http://www.eztools-software.com/tools/hsp/default.asp but wanted to see if
there was any better ideas out there.

Regards, Carl Gilbert

<%

spacer = "images\misc\spacer.gif"
filler = "images\misc\filler.gif"
line_end = "images\misc\line_end.gif"
btn_previous = "images\misc\previous.gif"
btn_next = "images\misc\next.gif"
btn_contents = "images\misc\contents.gif"
btn_summary = "images\misc\summary.gif"
int_g = request.QueryString("g")
int_sg = request.QueryString("sg")
int_sgmax = request.QueryString("sgmax")
int_i = request.QueryString("i")
int_imax1 = request.QueryString("imax1")
int_imax2 = request.QueryString("imax2")

int_g = CInt(int_g)
int_sg = CInt(int_sg)
int_sgmax = CInt(int_sgmax)
int_i = CInt(int_i)
int_imax1 = CInt(int_imax1)
int_imax2 = CInt(int_imax2)

'set the max number of images based on the sub group
If int_sg = 1 Then
int_mymax = int_imax1
Else
int_mymax = int_imax2
End If

'b1 = previous
'b2 = next
'b3 = contents
'b4 = summary

If int_i = 0 Then
'we are dealing with a group

'set the previous button
If int_sg > 1 Then b1 = 80 Else b1 = 0

'set the next button
If Not int_sg = int_sgmax Then s1 = 10 Else s1 = 0
If Not int_sg = int_sgmax Then b2 = 80 Else b2 = 0

Else
'We are dealing with an image

'set the previous button
If int_i > 1 Then b1 = 80 Else b1 = 0

'set the next button
If Not int_i = int_mymax Then s1 = 10 Else s1 = 0
If Not int_i = int_mymax Then b2 = 80 Else b2 = 0

End If

'set the contents button
If Not int_i = 0 Then s2 = 10 Else s2 = 0
If Not int_i = 0 Then b3 = 80 Else b3 = 0

'set the summary button
If Not int_g = 0 Then s3 = 10 Else s3 = 0
If Not int_g = 0 Then b4 = 80 Else b4 = 0

h1 = 620 - (b1+s1+b2+s2+b3+s3+b4)

%>

<% If int_i = 0 Then %>
<TABLE width="800" height="533" border="0" align="center" cellpadding="0"
cellspacing="0" id="Table2" STYLE="border: 2 ridge #800000">
<% Else %>
<TABLE width="800" height="533" border="0" align="center" cellpadding="0"
cellspacing="0" id="Table3" STYLE="background-image:
url(images\bulk\g<%=int_g%>sg<%=int_sg%>i<%=int_i% >.jpg); border: 2 ridge
#800000">
<% End If %>
<% For x = 1 To 7
If x <= int_mymax Then %>
<TD width="80" height="80">
<A
href="ShowImage.asp?g=<%=int_g%>&sg=<%=int_sg%>&sg max=<%=int_sgmax%>&i=<%=x%>&imax1=<%=int_imax1%>&i max2=<%=int_imax2%>">
<IMG src="images\thumbs\th_g<%=int_g%>sg<%=int_sg%>i<%= x%>.jpg"
width="100%" height="100%" border="0">
</A>
</TD>
<% Else %>
<TD width="80" height="80"><IMG src="<%=spacer%>" width="100%"
height="100%" border="0"></TD> <% End If %>
<% If Not x = 7 Then %>
<TD width="10"><IMG src="<%=spacer%>" width="10"></TD>
<% End If %>
<% Next %>

Nov 19 '05 #3
"Lucas Tam" <RE********@rogers.com> wrote in message
news:Xn***************************@127.0.0.1...
"Carl Gilbert" <mr*************@hotmail.com> wrote in
news:iM*****************@newsfe4-win.ntli.net:

Secondly, what is the best method for getting the pages to run
straight from disk? I have found this site:
http://www.eztools-software.com/tools/hsp/default.asp but wanted to
see if there was any better ideas out there.


Your code looks pretty straight forward... why not convert it to
Javascript?

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/


Hi, cheers for the reply

I suppose that could be an option, the only problem is that I know virtually
no java script.

Would it just be a case of swapping out the code for similar JavaScript?
What I am doing is providing a grid of thumb nails and then allowing the
user to click on the image which then displays it full size. The user can
then navigate through the images.

I am then using the query string to state how many images are available in
each group and therefore determine how many thumb nails to show and then
using the loop through the images to build up the URL for each large image.

In fact I would rather just try and get the ASP code to run from disk rather
than re-engineer the code if the end result is going to be the same.

Let me know if you want a more complete post of my code if you think that
JavaScript will be vastly easier to implement with minimal re-engineering.

Regards, Carl
Nov 19 '05 #4
"Carl Gilbert" <mr*************@hotmail.com> wrote in
news:eu******************@newsfe4-win.ntli.net:

Hi, cheers for the reply

I suppose that could be an option, the only problem is that I know
virtually no java script.

Would it just be a case of swapping out the code for similar
JavaScript? What I am doing is providing a grid of thumb nails and
then allowing the user to click on the image which then displays it
full size. The user can then navigate through the images.
More or less yes - I would go with the Javascript route because:

1. Javascript is built into IE
2. Security restrictions on the client side may prevent the ASP plugin
from being loaded
3. Javascript is "free" : )
Let me know if you want a more complete post of my code if you think
that JavaScript will be vastly easier to implement with minimal
re-engineering.


Javascript will definately be easier to deploy.

The only advantage ASP would have is in database access - you can't
really do that with Javascript.

In anycase, give Javascript a go - if you're a decent programmer, it
won't take you long to learn javascript (maybe a couple days... or a
week).

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 19 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: Horhayson | last post by:
Running W2k Server SP4, my application event viewer says that the Active Server Pages service is stopped. How and what do I need to do to start the service, and why does it stop? *** Sent...
6
by: Jim | last post by:
I've just bought a new Windows Server 2003 and I am trying to move an exiting FrontPage website to this new machine. I can't get ASP pages to run. IIS 6.0 has been installed. From the snap-in,...
35
by: Dirk Bruere at Neopax | last post by:
Is it possible to have one table somehow 'called' to appear on different pages? I want something to appear on all pages, yet only want to (re)edit one item. -- Dirk The Consensus:- The...
9
by: Marina Anufreichik | last post by:
Hi, After deploymnet web application on web server I can access page on local machine and login fine but when I'm trying to access web site from remote machine I can see login page, but when I'm...
3
by: Sravani | last post by:
Hi, I am setting up a new server for an already running website. The problem is the person before me ran ASP scripts on .html extension pages (The old machine is a windows 2000 server with IIS...
1
by: webguynow | last post by:
I've got one computer in a remote-location without Internet access and I'd like to get some Pear Pkgs installed on it. What happens during the "pear install" process ? Is an Inet connection...
0
by: George Birbilis | last post by:
I have a problem with a big ASP.net app with users saving pages to the disk and then opening them from the disk, filing them and trying to post them back. Seems IE posts them back to the original...
1
by: Terry Wilson | last post by:
I have what I think is a very simple question, but so far I have been unable t find the answer I have developed a small web based application that we will ship with one o our products. I...
2
by: CathieC | last post by:
I have deployed an asp.net application on Windows XP(SP2), Internet Explorer (V 6). SQL Server is running on the same machine. To login the user browses to http://machinename/default.aspx. Here...
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: 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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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...

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.