Looking at Twillio docs Using Twilio with Classic ASP and VBScript we implanted Twillio SMS API We encountered the following error message: The TLS versions on the server appreared to be causing the error TLS 1.0, TLS 1.1 and TLS 2.0 We used https://www.ssllabs.com/ssltest to get the current TLS Configuration. The results showed TLS 1.0 […]
Tag: Classic ASP
Classic ASP Function to Set Dynamic Image (1 of 2)
I reviewed some recent client Classic ASP code and found a 4 level deep branching of an IF statement. Reading the code, its intent is to look at the object type and return an icon representing the type. I try to stay away from IF statements altogether but using a SINGLE if statement is something I do […]
Adding Custom Properties to Objects in Classic ASP
I the last blog post Converting Recordset into Objects in Classic ASP we created a public function initialize(rs) which takes in a single row from the database and creates a single class object account. Our goal is to add a new property named fullname where we combine firstname and lastname We will update the public function initialize(rs) as follows: […]
Converting Recordset into Objects in Classic ASP
Now that you know how to create a Class and Objects in Classic ASP, we will look at Converting Recordset into Objects in Classic ASP. Lets create a Class account which has several properties. I usually use the database table account and copy the model so the Class matches the database model Class account public […]
How to create a Class and Objects in Classic ASP
Creating Objects in programming is one the best ways to have code that is easily maintainable. With new Classic ASP clients, I have found creating Classes and Objects is a very good way to begin refactoring legacy code. Class trip public arrive_date public depart_date End Class Here we have created a Class trip with 2 properties […]