Questions tagged [asp-classic]

Active Server Pages (ASP), also known as Classic ASP or ASP Classic, was Microsoft's first server-side script-engine for dynamically-generated web pages. The introduction of ASP.NET led to use of the term Classic ASP for the original technology.

Initially released as an add-on to Internet Information Services (IIS, formerly Internet Information Server) via the Windows NT 4.0 Option Pack, it was subsequently included as a free component of the Windows Server Operating System (since the initial release of Windows 2000 Server).

ASP 2.0 provided six built-in objects: Application, ASPError, Request, Response, Server, and Session. Session, for example, represents a cookie-based session that maintains the state of variables from page to page. The Active Scripting engine's support of the Component Object Model (COM) enables ASP websites to access functionality in compiled libraries such as DLLs.

ASP 3.0 provided some enhancements to the 2.0 version, including the Server.Transfer method, Server.Execute method and an improved ASPError object.

ASP supports multiple scripting languages, including VBScript (by default), but there are other options. An alternative Active Scripting engine can be selected with the @Language directive or the syntax. JScript (Microsoft's implementation of ECMAScript) is the other language that is built-in. PerlScript (a derivative of Perl) and others are available as third-party installable Active Scripting engines.

Though ASP is considered to be an old technology (first version released on December 1996, last version released on November 2000), the use of ASP pages is still supported today (November 22nd 2018).

According to Active Server Pages (ASP) support in Windows page on support.microsoft.com:

...The use of ASP pages with Microsoft Internet Information Services (IIS) is currently supported in all supported versions of IIS.

IIS is included in Windows operating systems, and therefore both ASP and IIS support lifetimes are tied to the support lifecycle of the host operating system. Visit Microsoft Lifecycle Policy for information about the lifecycle policy of your operating system.

11473 questions
2
votes
3 answers

ASP Update database, insert if does not exist

I have a CSV I need to loop through, get the ID of each row, then loop through the database, comparing the csvID to each dbID. If the ID exists in the database, it will then update the record with relevant info from the CSV. However, I'm stuck in an…
joshmax
  • 378
  • 5
  • 20
2
votes
3 answers

RegEx for Password Validation (ASP)

Can someone suggest a regular expression for validating a password with the following conditions. Password must be at least 12 characters long Password must not begin with a number Password must have 3 out of the following 4 characteristics: At…
m0dest0
  • 849
  • 4
  • 17
  • 36
2
votes
2 answers

Can classic ASP handle SQL Server mirroring failovers?

I have a couple of "classic" ASP apps that need to connect to a SQL Server database that is using database mirroring. Can ASP handle the failover in a similar way to ASP.NET? As in if I adjust the connection string to put the failover server…
Piers Karsenbarg
  • 3,105
  • 5
  • 31
  • 67
2
votes
3 answers

Handling hashed passwords stored as varbinary in SQL Server and classic ASP

All, Sorry in advance - I'm a novice in most of the topics below (SQL, ASP). Anyway... I've got a pretty simple web app that requires users to log in with a user name and password. The front end creates a salted SHA1 hash of the password, and posts…
mattstuehler
  • 9,040
  • 18
  • 78
  • 108
2
votes
3 answers

Catching 500 Errors after Response.Flush()

Once the data has been flushed to the page, and an error is generated in future processes, the error message is written inside the browser, instead of generating an entire 500 error on the page. How do I trap those errors that are written to the…
Control Freak
  • 12,965
  • 30
  • 94
  • 145
2
votes
1 answer

IIS 7 500 Error Handling situation

I am on IIS 7 with a Classic ASP application using Server.GetLastError() and i added this script that writes the error details to a database as a custom '500.100' error in IIS to execute this URL. So far it's been working on most situations when…
Control Freak
  • 12,965
  • 30
  • 94
  • 145
2
votes
1 answer

MySQL / Classic ASP - Parameterized Queries

In an absolute emergency, I am trying to go through my website and add parameterized queries. I'm a newbie and have only just learnt about them. My problem is, I only know a very little about connection types and all of the examples I'm seeing are…
TheCarver
  • 19,391
  • 25
  • 99
  • 149
2
votes
1 answer

ASP_0147 | 500_Server_Error

This issue has been happening for a while, and it's suspected to be session related since it pertains to the users browser. Opening a new browser (session) rids the issue. The application uses Global.asa (Only Application_OnStart and Sub…
Control Freak
  • 12,965
  • 30
  • 94
  • 145
2
votes
1 answer

server.urlencode does not encode special characters

I have a piece of code that redirects to a page using server.urlEncode (fields) when the captcha isn't entered correctly. Code looks like: sRedirectTo = "page.asp" _ & "?action=vcerr" _ & "&at=" & server.urlEncode(sAdType) _ & "&fn=" &…
Matt R
  • 2,577
  • 5
  • 30
  • 46
2
votes
1 answer

Error creating Word object in classic ASP on IIS7

In the middle of converting our Intranet from a Windows 2000/IIS 4 box to a Windows 2008/IIS 7 box. Just doing a straight conversion for now, with an eye on redeveloping some apps in C#.NET in the future. New server has Word 2010 installed, old has…
Jay
  • 75
  • 2
  • 8
2
votes
1 answer

VBScript Class member variables was override by outer constants

I found that vbscript class member variables can be replaced by outer constants value. Example VBScript code: ''' save as test.vbs file Class Person Private name Public Sub hi name= "inner_name" msgbox name 'will be "outer_name" End…
cuixiping
  • 24,167
  • 8
  • 82
  • 93
2
votes
2 answers

Set Session in Asp page using Asp.net

I have a Login Page which is created in asp.net now when i successfully logins into my application i need to transfer session related information from my asp.net page to my asp page so how to set my session information in asp using asp.net. Regards,
Rahul Jain
  • 612
  • 1
  • 18
  • 49
2
votes
2 answers

Sql injection script

This title of the question may seem to be previously asked and answered but its different scenario for me. I use this script to stop sql injection in my ASP site. As per my knowledge or injecting script i have tried everything . Is it still possible…
Chief
  • 914
  • 1
  • 9
  • 26
2
votes
2 answers

Add comment between continue line (underbar) on ASP Classic VBScript

I am currently trying to figure out how to add comment within a line continuation statement on ASP classic. Our code management requirement requires us to write a Start block and End block to mark the place where we did a change. For example. Old…
Nap
  • 8,096
  • 13
  • 74
  • 117
2
votes
1 answer

Running a query using ADODB Connection randomly takes a long time to execute

I have come across an issue that seems to be somehow connected to a web server configuration, and resulting in queries randomly taking a long time to execute. The application is created using old plain Classic ASP and ADODB Connection is used. The…
Sebastian Zaklada
  • 2,308
  • 1
  • 14
  • 25
1 2 3
99
100