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
2 answers

Forcing IE To display word document in browser

We have an ASP Classic application that provides document management. We have a fetch page that fetches the document from SAN storage and delivers it to the user, based on whether or not they are logged in. With IE6 and Word 2000 (when I wrote the…
THEMike
  • 1,701
  • 2
  • 17
  • 28
2
votes
3 answers

replace spaces with   from a recordset

How can I change "spaces" on records being returned by a recordset? For example, I have this code that will return a value of "John Doe": <%=rsTmp("Name")%> What I would like to do is to change the space between the…
zerey
  • 871
  • 11
  • 19
  • 37
2
votes
1 answer

Regular Expression voodoo in ASP

Argh it's a good thing I don't pay my salary on days like this. I copied some regex patterns from my client side Javascript to server side ASP and the email pattern works no probs but an identical function for the password pattern has cost my boss 6…
AEP
  • 31
  • 1
  • 3
2
votes
4 answers

How to write connection string to connect from classic ASP page to SQL 2008 R2?

I connect from classic ASP page to SQL SERVER 2008 R2 with following connection string "Data Source=(local);Initial Catalog=my_db;Persist Security Info=True;User ID=my_user;Password=my_pass;" but I get error Microsoft OLE DB Provider for ODBC…
theateist
  • 13,879
  • 17
  • 69
  • 109
2
votes
1 answer

Need to call a .Net Class library dll from a Classic ASP Page

I need to call a .Net Class Library from a vbscript application I have written a C# class library and created a COM DLL component and a type library file I have successfully registered the dll and tlb on my local computer using…
Lakshmi
  • 21
  • 1
  • 2
2
votes
2 answers

VB Script ignore special character

any idea how to ignore a < or > in a VBS string ie: strEx = "<10 days" response.write(strEx) Thanks
Bobney
  • 320
  • 3
  • 19
2
votes
5 answers

stored procedure createparameter insert empty date

I am using CLASSIC ASP with a stored procedure, the stored procedure has a date field that is not required. I am trying to insert when there is no date entered on my form. I have tried "", Null, NULL, vbNull. edit: I am setting DOB to "" in the…
Primetime
  • 569
  • 4
  • 10
  • 24
2
votes
1 answer

Displaying XML in asp page

I use Get Clicky for my web analytics and there is an API for generating custom reports. The output of the request is sent back in either XML CSV JSON or PHP. My site uses ASP and I would like to know if I request the output to be sent back to my…
Darren Cook
  • 661
  • 4
  • 14
  • 28
2
votes
3 answers

Can I return html from a classic asp vbscript asp function? What about PHP?

Can I call a Classic ASP vbscript function and have it return html? I have a function that does some calculations, but I want it to send back the html as well. Will it do that? . response.write MyFunction() function myFunction() return…
johnny
  • 19,272
  • 52
  • 157
  • 259
2
votes
2 answers

Does runat="server" img scr=~/img/ex1.png" work in ASP or only ASP.net | Relative to Absolute path in include

so: I've read 8+ stackover flows on relative to absolute. A few sites and went to MS page on this... however when I've tried and had not success. Then I researched more and wonder solutions I read about are not part of .asp and just asp.net?…
Casey Burnett
  • 23
  • 1
  • 4
2
votes
3 answers

How to Run .asp page on vs2010 project

My local pc os is windows7 .Work on vs2010 C# .In my project I have .aspx and .asp files.My project start up page is .asp.After run the project I get the error . The type of page you have requested is not served because it has been explicitly…
shamim
  • 6,640
  • 20
  • 85
  • 151
2
votes
4 answers

SQL Server Datetime convert from string

Sorry asking again..i have a problem when i tried to insert datetime from field. The problem is Syntax error converting datetime from character string.i'm using SQL Server 2000. below is my code startDate = Trim(Request("StartDate")) endDate =…
GreenCat
  • 167
  • 1
  • 1
  • 15
2
votes
1 answer

User authentication over LDAP in asp

I want to pass username and password to LDAP and retrieve user information. I have code below but don't know where must I add password string in it? strUsername = Request.Form("username") strPassword = Request.Form("password") Set rootDSE =…
uzay95
  • 16,052
  • 31
  • 116
  • 182
2
votes
1 answer

transact SQL, sum each row and insert into another table

for a table on ms-sql2000 containing the following columns and numbers: S_idJ_id Se_id B_id Status Count multiply 63 1000 16 12 1 10 2 64 1001 12 16 1 9 3 65 1002 17 12 1 10 2 66 1003 …
hhead
  • 31
  • 6
2
votes
3 answers

301 Redirect is not working in ASP

I have looked through all the asp redirects and they all say the same thing. I'm trying to redirect single .asp pages to new url. Here is the code I keep seeing and have tried placing at the beginning of the pages in question multiple…
1 2 3
99
100