by      

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 SQL Injection

Friday Dec 19 2014
You might not like it but SQL Injection is part of your life now that you are a SQL programmer and I mean no matter what language you selected it's all the same when it comes to injection and databases. ASP classic has had a hard life, many times new programmers forget this history and go back to thinking the infrastructure will protect them. Or if you never do anything custom and only use what is in the framework you're safe. Right? Ha!

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.