Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

ASP Script

Thread Tools
 
Search this Thread
 
Old 27 May 2002, 09:14 PM
  #1  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

How can we test this following code on a PC without having to be online
<%@ Language=VBScript %>
<html>

<head>

<META NAME="GENERATOR" Content="Microsoft FrontPage 5.0">
<TITLE>Extremely Simple HTML</title>

</head>
<BR>
<CENTER>
This is a test page:

<BR>
<form name="formTest" METHOD="POST" action="Test.asp">
<input type="text" name="Text1" value = "" size="20">
<input type="submit" name="Submit" value="Submit the *******">
</form>

</CENTER>
<%
Document.Write "Request(Text1) = " & Request("Text1") & <BR>
Document.End
%>

</body>
</html>

Si
Old 27 May 2002, 09:26 PM
  #2  
stevem2k
Scooby Regular
 
stevem2k's Avatar
 
Join Date: Sep 2001
Location: Kingston ( Surrey, not Jamaica )
Posts: 4,670
Likes: 0
Received 0 Likes on 0 Posts
Post

run a webserver on the local machine that listens on 127.0.0.1

change the hosts file to spoof 127.0.0.1 to the url you are attempting to connect to.

Steve
Old 27 May 2002, 09:32 PM
  #3  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

and in english...
Old 27 May 2002, 10:18 PM
  #4  
chiark
Scooby Regular
 
chiark's Avatar
 
Join Date: Jun 2000
Posts: 13,735
Likes: 0
Received 0 Likes on 0 Posts
Post

What OS are you running?

Download Personal Web Server if 95/98. You'll find this in, bizarrely, the Windows NT4 option pack

Install that and you can run ASP locally.

Make the changes above too.
Old 27 May 2002, 10:20 PM
  #5  
chiark
Scooby Regular
 
chiark's Avatar
 
Join Date: Jun 2000
Posts: 13,735
Likes: 0
Received 0 Likes on 0 Posts
Post

and if running Win NT4, you need the option pack. If running Win2k, just install IIS from the "Windows components" part of Add/remove programs in Control Panel.

Don't forget to get Nimda patches for Winnt or 2k otherwise you'll find yourself virused pretty quickly...

Old 27 May 2002, 10:55 PM
  #6  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Yeah its 2k pro!
Old 28 May 2002, 08:31 AM
  #7  
chiark
Scooby Regular
 
chiark's Avatar
 
Join Date: Jun 2000
Posts: 13,735
Likes: 0
Received 0 Likes on 0 Posts
Post

Right, go to settings, control panel, then add/remove programs, then click on "Add/Remove windows components". You want to install Internet Information Services (IIS) - not all of it though.

Click on details, then select documentation, common files, documentation, Internet Information Services snap-in, Web Server.

Once installed you will be suseptable to the Nimda virus.

Re-apply service pack 2, and download this hotfix from Microsoft then install it.

Put that file in /inetpub/wwwroot, or alternatively go to internet information services that's now found in Adminstrative tools and point your home directory of the web service at your web development directory.

Any use?

Trending Topics

Old 28 May 2002, 09:24 AM
  #8  
super_si
Scooby Regular
Thread Starter
 
super_si's Avatar
 
Join Date: Feb 2002
Location: Lurkin Somewhere
Posts: 7,951
Likes: 0
Received 0 Likes on 0 Posts
Post

Yeah thats help full cheers
Si
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Darrell@Scoobyworx
Trader Announcements
26
30 January 2024 01:27 PM
vmax
Non Scooby Related
4
23 October 2001 01:38 PM
ozzy
Bugs / Feature Requests Archive
1
17 October 2001 12:13 AM
Puff The Magic Wagon!
Non Scooby Related
4
01 October 2001 05:33 PM
WREXY
ScoobyNet General
3
12 May 2001 03:06 PM



Quick Reply: ASP Script



All times are GMT +1. The time now is 03:03 PM.