CoverYourASP --> Snippets

Free membership

Join in the fun! Sign in
Member Services

Site navigation
Download the entire site!
Search my articles
Free Magazines
Browse the directory

Send me feedback
Buy my boxer shorts

Recommend this page
Printer-friendly page

Resources I recommend
Link to my site
Advertising slashed!
About your privacy
Legal stuff
Site statistics
21 active users
2317 visitors today
2012 pages today
(only part of today)
Tools I use

CoverYourASP
Copyright © 1999-2016 James Shaw.
All rights reserved.

ASP.NET Blog
RSS submissions
E-commerce

Now open source with SourceForge!

"Snippets" are mini-articles - they allow me to very quickly add answers to your frequently asked questions, and add brief explanations for topics that you've searched for without success. So, everytime you send an email or perform a search, chances are a new snippet will be the result!

11 Dec: How do I convert my HTML pages into ASP?

Roberto:

Hi, I noticed you said that you can convert normal HTML pages written in FrontPage... which is exactly the same program I use... convert them into ASP pages.

Could you tell me exactly how you do this?

Me:

I don't remember saying that, but simplistically, just renaming them to .asp makes them an asp file.

What I mean by that is that the file will be processed by IIS as an asp file, it just won't find any script in there to execute.

To add some script, add a line at the top specifying the language:

<% @language=javascript %>

Anything inside <% %> is interpreted as asp, so as an experiment you could add this next line in the middle of your body:

   This is just some html text, this page is called
   <%=Request.ServerVariables('SCRIPT_NAME')%>

That's a simple start. Now look at some simple examples like my Date.asp to see how to progress...Have fun!

Featured sponsor
My favorite resources


New Proposal Kit Professional 5.1
Brand yourself as a top professional: create quotes and amazing proposals and get many legal documents free!

The latter saved me 3 times the purchase price on the first day I owned it!


Qualify for Free Trade Magazines

Free subscriptions to industry leading publications for those who qualify!