ASP Classic Active Server Pages IIS Servers

I've been programming ASP SQL for just about 17 years now. Still have my IIS 2.0 with my Visual Basic books that guided me down the path of ASP programming. (I also have Java, .Net, but I enjoy the long winded left to right top to bottom coding that my ASP offers.)

In this section I'll be offering my examples of how I do things.

If you're one of those asking the question "Should I upgrade or change my programming from ASP to ASP.Net or PHP"?

About 7 years ago I asked the same question and setup my first PHP and .Net sites. I still have 2 or 3 .Net sites online but I've returned to the ASP Classic programming from NOTEPAD++ . No need to purchase anything to program in ASP and really the learning is all about your creative talents. If you can read "Left to Right, Top to Bottom" and remember that all exploits start with you then you're on your way to being a good programmer of ASP. From what I have read I have another 10 + years of programming and I'll be challenging the newer software programmers in Web and Mobile Web based apps to come up with something that's impossible to do in ASP Classic. (Be nice and I'll share with you how it's done on IIS servers.)

Every programmer is different and if there is one thing I have learned from programming in ASP Classic is you are only limited by 2 things.

  1. Your Servers Memory.
  2. Your Creativity. 

It's not easy to know if you're doing things right when their is really no set rules.

If you need help contact me.

If you have inherited ASP Code and are building a new environment that doesn't include ASP Classic on IIS 7+ send me a detailed project description that's under 250 words. What I offer is a side by side site setup so you can make sure your new code has everything your old code has. I'll be glad to help for a fee ($) if you need me to do all the work and offer my servers.

Yes, I can provide you with several very large websites that I have programmed and still have online today. One of my oldest is 17 years and the newest just under 1 year.

Without debating the best practices of ASP programming I'll stick to what I do and what I know has been working for me and let you debate if you should DIM every variable or if you should never do something because someone else said it was dangerous.

The articles are setup so I can field some questions.
If you are a .Net programmer and have inherited some mixed VB with ASP and everything seems to have MM in front of it your in the middle of the first years of outsourcing to India.
I'm not sure why but years ago some developers thought it would be wise to use a programming method that required you to have a notebook of cipher text and symbols.

Let me layout my first rule.

  • Always host your own ASP Classic IIS Server.

Now your first issue of Memory has been resolved.

Next rule:

  •  Learn to Cache Dynamic and Static pages in your IIS server.

My first tip: 

  • Don't listen to those that say your pages are too long. 

Ok, lesson one, make your code read from left to right, top to bottom and make it a storybook that you enjoy. 

One of the hardest things is picking up someone else's code that was coded in a weird almost over the top geeky I'm going to jump on a comets tail type of weird. 

Don't encode your Variables. 

str = String

strA = String with an A

strMurray = String with Murray

str1 = String with the number 1

Now, what I mean by not encoding your var's is don't use some crap method of 

mmX2231 = mm which only you know, X is the column or table I think and 2231 is... Holly crap batman, this isn't a string, it's not an array it's just some damn coder that things mmX is a good replacement for str. 

Remember your History of Programming. str = String , arr = Array , blah blah blah.. 

I have a cheat sheet for you but if you search, "Visual Basic command references" and "ASP Classic Command references" you should find a few things that will help you right now. 

Now, let's get going... Lesson Number One. SQL Injection .. Learning how to do it will make it harder for you to justify using anything related to a database... (joking...)

Update: I'm retiring from programming and picking up Python + JavaScript + C# + Django.. Wait a minute, They are more restrictive than my Classic ASP and if I need them I can mix them in my code. 

I'm Out of Retirement and Programming in ASP Classic until 2021 or something like that.

I am picking up Python, very similar to my Computer programming of the 80's with a touch of VB in the mix should be a walk in the park. Only if I can create my own sub routines and get away from that "In a BOX" programming style that was created for Boxed People. 


ASP HTTPOnly Encrypted

Monday Feb 27 2017
Working with HTTPOnly Cookies my actually be easier than you think. For many of us it's the path to covering more browsers and offering a more secure way of storing data. I'm sharing my code with some easy encryption methods to keep that 14 year old from reading things in plain text. Full code with example site page.

ASP Set-Cookie HTTPOnly

Friday Nov 18 2016
So many ways of doing one thing but so little offer the code to those that are either forced to learn or want to learn. Here's my effort of teaching old and young code dogs a new trick. If you don't know what HTTPOnly is all about read the links I supplied in the other post. If you do know, and want to learn how I handle HTTP cookies as my only Cookie resource then read away. If you get confused, I for a nominal fee of $35.00 per code hour will make all your confusion go away.

ASP Classic SSL Cookies

Friday Nov 18 2016
It's really getting close to your ASP Classic SSL HTTP Header Cookie time. What? You didn't get the MEMO? Let me remind you, Cookies are dead, Long Live Cookies! In the SSL Secured HTTP Only Header Mode! The code is below, you can use it or call me and I'll use it, upgrading your site. Remember, 2017 starts full SSL required by major search engines for all membership and eCommerce sites. Mine Included!

Path File access error

Monday Mar 7 2016
Are you finding more errors when visits your site? How about Path/File access error Code 75 ? I find that I only see this type of error when a select type of bot visits me. Is it due to the Forced SSL and images? I'll know more when they come back. I've added more monitoring code for this selected error type.

ASP Page Redirects

Saturday Oct 3 2015
When you need to redirect a page and need that redirect to be managed by an included page because of the site, size, type of redirects you need here is my code designed to transfer over and redirect based on anything your ASP Classic page can provide.

ASP QueryString En-Decode

Thursday Apr 23 2015
When Scripting that old ASP page from that soon to be out of life support Server 2003 you might need to review your SQL Injection Practices. I bet if you're still on Server 2003 you still have some old SQL issues. Or maybe not. I am sharing a few methods of handling Forms and Query strings that might help you. If you have questions, google plus them to me.

1 | 2 | 3


Sharing some of my experiences with ASP Classic programming and fielding a few questions. Every programmer has their own style and every programmer is always learning. I feel if you have a code based that can be as creative as you then you have a code match.