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 May 27, 2002 | 09:14 PM
  #1  
super_si's Avatar
super_si
Thread Starter
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
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
Reply
Old May 27, 2002 | 09:26 PM
  #2  
stevem2k's Avatar
stevem2k
Scooby Regular
 
Joined: Sep 2001
Posts: 4,670
Likes: 0
From: Kingston ( Surrey, not Jamaica )
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
Reply
Old May 27, 2002 | 09:32 PM
  #3  
super_si's Avatar
super_si
Thread Starter
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

and in english...
Reply
Old May 27, 2002 | 10:18 PM
  #4  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
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.
Reply
Old May 27, 2002 | 10:20 PM
  #5  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
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...

Reply
Old May 27, 2002 | 10:55 PM
  #6  
super_si's Avatar
super_si
Thread Starter
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

Yeah its 2k pro!
Reply
Old May 28, 2002 | 08:31 AM
  #7  
chiark's Avatar
chiark
Scooby Regular
 
Joined: Jun 2000
Posts: 13,735
Likes: 0
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?
Reply
Old May 28, 2002 | 09:24 AM
  #8  
super_si's Avatar
super_si
Thread Starter
Scooby Regular
 
Joined: Feb 2002
Posts: 7,951
Likes: 0
From: Lurkin Somewhere
Post

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




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