-
Importing HTML & Beginner Questions
Hello,
I have a couple questions:
First: I am just beginning to code in ASP, and I was wondering if anyone
knew of an ASP or HTML editor that would allow me to see the final product
of my ASP pages without having to upload them to my server? Preferably I
would like this editor to be free, as I am creating a site on a free server.
Secondly: My task, which is mostly exploratory rather than practical, is I
would like to open or import the contents of an external (from one of my
other servers) HTML file into a string variable that I can parse within my
page. I was given previously an example which is below, but it doesn't seem
to work for external pages and I get a 'ActiveX Control cannot create
'Scripting.FileSystemObject' ' error.
<%
ReadDisplayFile("Http://www.public.asu.edu/~mwyant/palm/avantgo.html")
SUB ReadDisplayFile(FileToRead)
whichfile=FileToRead
Set fs = CreateObject("Scripting.FileSystemObject")
Set thisfile = fs.OpenTextFile(whichfile, 1, False)
tempSTR=thisfile.readall
response.write tempSTR
thisfile.Close
set thisfile=nothing
set fs=nothing
END SUB
%>
Any help you can give on either of these questions is appreciated, thank you
for your time.
Matt Wyant
MDWyant@SRPnet.com
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks