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.

Filter by
Sorted by
Tagged with
0 votes
0 answers
38 views

how can sign out my web site when close browser

I want to sign out my web site when the user closes the page tap or browser onbeforeunload sometimes don't work can any one help me with JavaScript or JQuery. <script> window.onbeforeunload = ...
abdo Zurg's user avatar
-1 votes
0 answers
31 views

Strange Behaviour in Classic Asp Class [closed]

I'm creating a classic Asp Class, but I'm getting a Strange error. The class has some properties and methods: Class ItemCollection (...) Public Function GetOrAdd(id, name) Dim it ...
Marlon's user avatar
  • 1,727
0 votes
1 answer
44 views

How to resolve 'recycle IIS application pool error in vbScript website'? [duplicate]

This application needs to be recycled at least 3 times a day, currently it's a very big problem. This is not a large-scale logical application, it is primarily used for uploading and downloading ...
Maduwantha Hettiarachchi's user avatar
-2 votes
1 answer
61 views

COUNT TAGS IN DB [closed]

I have a list of tags in a DB field. Some, or most appear multiple times. I want to list the distinct tag names and put in parentheses the number of times each distinct tag appears. Here is my code so ...
Penguin's user avatar
-1 votes
1 answer
52 views

select statment asp classic with parameter [duplicate]

i am working with asp classic with sql server , i want to change my sql statment to prevent injection my sql statment this is my sql statment it is run ok %><!--#include file="Config.asp&...
abdo Zurg's user avatar
-1 votes
0 answers
24 views

How to obtain specific combinations from some groups of values in Classic ASP [closed]

I want to obtain combinations of values from groups of comma separate values string like the following: str = "A,B,C|1,2,3|x,y" This is an example, the number of groups (separated by pipe) ...
Sciabal's user avatar
  • 21
-2 votes
0 answers
34 views

ASP classic validation [closed]

How can I know whether the number in the text box is present in the database directly and not when sending the form? With asp classic
abdo Zurg's user avatar
-2 votes
0 answers
30 views

Working example of Stripe Checkout using Classic ASP [closed]

I am trying to integrate Stripe Checkout into a web site that has been written in classic ASP. Does anyone have a working example of this that they can share with me I have found some broken or ...
Charlie.H's user avatar
1 vote
0 answers
48 views

Converting Legacy Project to Today's Technologies [closed]

I'm working on an old Classic ASP Project and this project connected to MSSQL Database.(Database includes lots of Stored Procedures like maybe 400+). I want to update this project up to ASP.Net 6.0 ...
Keeay's user avatar
  • 11
2 votes
1 answer
56 views

Classic asp application_OnEnd and session_OnEnd events not working

I need to still work with classic asp and I faced with an existing application an issue with Application_OnEnd and Session_OnEnd events - i.e. the are not working. OnStart-events work normally. I do ...
M.Y.'s user avatar
  • 569
1 vote
1 answer
45 views

Server sent events (SSE) not working in Classic Asp on IIS [duplicate]

I wonder if anyone have faced the same issue: Server sent eventd (SSE) are not working in Classic Asp on IIS (version 10) as they used to. It seems that the issue has appeared with modern browsers ...
M.Y.'s user avatar
  • 569
0 votes
0 answers
45 views

Error in Parameterized Query using Classic ASP [duplicate]

I am getting the following Error in this parameterized query using Classic ASP. ADODB.Command error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one ...
Babar's user avatar
  • 75
-2 votes
0 answers
72 views

Use TLS 1.2 (not 1.0) when sending emails in Classic ASP with CDO [duplicate]

Amazon have written to us to say "Update your TLS connections to 1.2 for SES using SMTP to maintain AWS endpoint connectivity" as they have detected we have some old Classic ASP pages that ...
Magnus Smith's user avatar
  • 5,891
1 vote
1 answer
28 views

ASP Classic Dictionary [Key, Array] Error

I have a function that uploads an Excel file to my server and saves this file in a dictionary[Key, Array]. I loop the rows of the Excel file, create an array with the values of that row and add this ...
Pau Serra Sans's user avatar
0 votes
2 answers
86 views

How to I get a text field from a database to word wrap to a specific width, while maintaining paragraph spacing?

I have researched this for days now and everything I have tried has failed. I am using classic ASP and MySql database. I am not sure where else to turn. I have read similar questions here, but the ...
Penguin's user avatar
0 votes
1 answer
37 views

Classic ASP: play mp4 file located behind web root

My client uploads MP4s to a folder behind the web root for internal usage. They would like to play these directly for some users from a web page rather than download. Is that even possible? I can get ...
RobertyBob's user avatar
0 votes
1 answer
64 views

Create Object Chilkat Failing on Win Server 2022

I have installed the Chilkat ActiveX software and all components seem to be registered. However, I am getting the following error at this line of code: set http = Server.CreateObject("...
Benzine's user avatar
  • 474
1 vote
0 answers
31 views

How do I enable syntax highlighting for global.asa in Visual Studio 2022 Community Edition?

I have a classic ASP web application to maintain. In previous versions of Visual Studio Community, at least up until 2017 (I never used 2019), syntax highlighting worked in all files on this ...
CB_Ron's user avatar
  • 589
0 votes
0 answers
61 views

Routing classic ASP with ASP.NET webforms

Before starting, I see many answers for MVC but I'm not using MVC. I just want this but for WebForms, not MVC. For a hybrid Classic ASP/ASP.NET WebForms project, I'm trying to setup simple routing ...
MPelletier's user avatar
  • 16.3k
0 votes
1 answer
88 views

form.submit() Takes 40+ seconds to trigger action

I have a simple page that's used to pass session variables from an old ASP/VBScript page to a newer ASPX/VB page: asptonetconn.asp <%@ Language=VBScript %> <% ' We grab all the session ...
G_Hosa_Phat's user avatar
  • 1,006
0 votes
0 answers
68 views

ASP Classic - ADODB.Recordset Update Oracle Error - 80004005|[Oracle][ODBC]Wrong_number_of_parameters

I am supporting an ASP classic application that uses ADODB.Recordset objects to interact with an Oracle database through an ODBC connection. The application works as desired in our QA environment, but ...
jjw's user avatar
  • 111
1 vote
1 answer
60 views

MS-SQL Server query to find record where column row is part of nominated string using Classic ASP

The query needs to find a record where the value stored in a column row matches the nominated variable. For example the column row value might be https://example.com/docs/ and the nominated url might ...
Kendo's user avatar
  • 149
0 votes
0 answers
65 views

In vbScript create an object to behave like the Request object, where the exact same syntax returns a collection or a string depending on the context

In vbScript, the code: For Each Key In Request.QueryString will treat Request.QueryString like a collection and you can iterate through it. But the code: mysite.com?<%=Request.QueryString%> (...
user1693404's user avatar
0 votes
1 answer
64 views

ASP Classic DSN ADODB get error with password in access-db

I had to migrate an old ASP-System (oh yeah) with Database as Access-DB. There is an System-DSN over Microsoft Access database engine 2010 (it's so old that I use this and not 2016). Old System is ...
maximiliansport's user avatar
0 votes
1 answer
24 views

SSRS report inside classic asp web application

I've got a classic asp web application which I am trying to bring some SSRS reporting services into. I have created a classic page within the web app that links to a sql table to have the links for ...
Andrew Thompson's user avatar
0 votes
0 answers
87 views

Windows authentication for the application and managed service account for sql server

I have an application which is a classic asp site with an application pool .NET v2.0 classic. The site has been using windows authentication for the application and sql server authentication with a ...
Camilla Gaardsted's user avatar
0 votes
0 answers
71 views

How to integrate owin with classic asp project

I have updated classic asp project to .net 4.8 version without restructuring or any code changes and added owin integration for the same. but I am not able to set cookies for the project. I am ...
shweta's user avatar
  • 1
0 votes
0 answers
46 views

asp classic BinaryRead with hebrew charachters has wrong encoding

I am using the "shadowupload.asp" library to handle an upload of a file from a form. Using asp classic & vbscript. some form field values are in hebrew and there is some encoding issue ...
Noam Smadja's user avatar
0 votes
1 answer
89 views

VB Script Application: Path Not Found for ASP Classic Page

I am having issues with routing from a VB6 DLL. When my web page calls a classic ASP page called "Recreate Session" I get this error message: Path not found /Path/to/File/RecreateSession....
awimley's user avatar
  • 692
0 votes
2 answers
204 views

url rewriting in IIS causes css and images files not to get loaded in browser

I have tried to solve the issue of not getting css and images files loaded in browser after url rewriting in IIS for classic asp app. I have found the solution which shows in developer tool's network ...
M.Y.'s user avatar
  • 569
0 votes
0 answers
74 views

Does a classic ASP script keep executing after the browser runs out of graphical memory?

I have a classic ASP script which manages hundreds of thousands of people's data. For each person it prints about 10 lines. After a while (let's say at about the 60k-th person) the browser runs out of ...
Alessandro's user avatar
-2 votes
2 answers
91 views

VBScript / ASP Classic - Avoiding name conflict with function parameters

I'm working on an old application that often declares variables that seem to be global, using identifiers likely to be used elsewhere. When writing a function, some parameters happen to have the same ...
Virus721's user avatar
  • 8,081
2 votes
1 answer
92 views

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= "...
cuixiping's user avatar
  • 24.2k
0 votes
1 answer
69 views

External link problem get data from external XML file via classic ASP [duplicate]

I am using below code to get data from local file. Source = "kur.xml" Set kurlar = Server.CreateObject("msxml2.DOMDocument.6.0" ) kurlar.async = false kurlar.resolveExternals = ...
zokanzi's user avatar
  • 117
0 votes
0 answers
141 views

How to mitigate stored XSS with Response.BinaryWrite in Classic ASP?

The sample below demonstrates running a SQL command, then choosing a column and writing it to a file which is returned to the user. This is an example of stored XSS and in my scenario and although I ...
Paradox's user avatar
  • 4,602
-1 votes
3 answers
96 views

Exactly minutes between two times [duplicate]

Need a formula that gives me the minutes between two dates. This should be used in asp classic eg: between 08:00-20:00 I want to distribute times by 16 times. (I have 16 pieces of candy that I have to ...
Henrik's user avatar
  • 3
-1 votes
1 answer
62 views

sql - Access database and classic asp

I have these tables: News newsId Companies companyId Users userId company_id NewsShare news_id user_id I want to list all news from a company AND all news that a user from that company has ...
Sanne Faurholt's user avatar
0 votes
0 answers
224 views

Using JWT from classic ASP site for authentication on a .NET 6 web app

I have a classic ASP site that I want to use as an issuer for a JWT to authenticate users on a .NET core web app. I am trying to do this so that I could eventually migrate all the features/reports ETC ...
mike's user avatar
  • 129
-1 votes
2 answers
237 views

How to connect to MS Access database from ASP.NET webforms?

I currently have an existing ASP classic app connecting just fine with this code: Set server = Server.CreateObject("ADODB.Recordset") server.ActiveConnection = "dsn=[name in ODBC Data ...
Wilhelmina Lohan's user avatar
0 votes
0 answers
43 views

rewrite rule isn't triggered for urls with asp extension

We have an old site in classic asp. And we had a rewrite rule in webconfig to avoid 404 error for not existing pages. Previously it worked. Here is the rule <rule name="articoliarchiviati"...
alena's user avatar
  • 51
0 votes
1 answer
2k views

Classic ASP in Windows Server 2019 [duplicate]

We have a web app originally built in classic ASP (we are rebuilding in ASP.NET) but we need to migrate to windows 2019 server ASAP. I have migrated the web app, and configured IIS and we can get the ...
AJF's user avatar
  • 1,831
-1 votes
1 answer
78 views

rs.eof always returns true. Stored procedure is not returning values in Classic ASP

I am trying to execute this stored procedure in a Classic ASP script: set conn = server.CreateObject ("ADODB.Connection") conn.Open (<---QueryString Here--->) conn.CommandTimeout = ...
Mahendra Kumar's user avatar
1 vote
2 answers
148 views

Enable server-side includes in an ASP file that has been re-named to .doc under IIS 10

I`ve moved a Classic ASP app from an old Windows 2003 server to a new server with IIS 10. It`s working well, and Server-Side Includes work perfectly in .asp files. However, the app includes some .asp ...
Doofus's user avatar
  • 71
0 votes
0 answers
91 views

Serve Classic ASP in Blazor WebAssembly Hosted

I have a Blazor WebAssembly Hosted site that I need to use to server up some classic ASP applications the customer needs to use until they are converted to Blazor. I put the required asp files in the ...
Brian Simmons's user avatar
1 vote
2 answers
91 views

How to create a Function to check the supplied URL against a Whitelist of approved URLs Or Domains before redirecting

I am new in the Classic ASP, and I want to ask if there's anyone who has experienced and knew of how to create a validation Function in Classic ASP to check the supplied URL against a Whitelist of ...
Leonard's user avatar
  • 11
0 votes
2 answers
70 views

Loop fails to show the table correctly, if value in 1st or 2nd <td></td> = 0

If I have a column with different values called vStatus (member-staus with value 100 - 200 - 300 etc.) in MySQL with diferent values, and I want to place those users in 3 columns in a table like this: ...
Steen's user avatar
  • 1
0 votes
0 answers
45 views

Getting Type mismatch: 'b64_hmac_sha1' error on Classic ASP OAuth 2.0 call for access token

I'm trying to get an OAuth 2.0 access_token and am getting an error message on the include page. here's the function that is giving the message. Private Function Get_Signature() Dim ...
Cindy Tackett's user avatar
-1 votes
1 answer
200 views

Run Node Script with ASP Classic [duplicate]

I'd like to know what's the proper way of running a node script from within a ASP Classic / VBScript page. I've tried to open a notepad file didn't work: <% CreateObject("Wscript.Shell")....
Book Writter's user avatar
1 vote
1 answer
109 views

ASP Classic can I use Response.AppendToLog in global.asa Application_onStart

In ASP Classic can i use Response.AppendToLog in global.asa Application_onStart ? I would try to Log error when application starts, but i always get this error: erreur '8002802b' /v1/common/CAppInit....
olivier sow's user avatar
0 votes
1 answer
54 views

Passing a Variable with Ajax and Javascript

I have advanced ASP (classic) skills but am pretty green to JavaScript and Ajax. I'm working on a page that allows users to enter comments in response to a post. I'm wanting the form submission field ...
UnivDevGuy's user avatar

1
2 3 4 5
230