asp-classic

Dockerize ASP Classic on IIS

六月ゝ 毕业季﹏ 提交于 2020-07-04 05:45:28
问题 Microsoft has been investing in running docker on windows with Docker Desktop for Windows . Is it possible to run a legacy ASP Classic application on IIS through Docker? How? https://hub.docker.com/r/microsoft/iis/ 回答1: I finally got this all working. It was a lot more complex than running a simple Dockerfile, as it was a site that was originally developed in 2002. There were modules that had to be downloaded and installed, web.config sections that needed to be unlocked, and ODBC data

Zipping a folder using 7-Zip from an asp page

穿精又带淫゛_ 提交于 2020-07-04 05:26:22
问题 I am trying to zip a folder from an asp page. This is my code: zipFolderName=folderName &"Zipped.zip" command="cd C:\Program Files\7-Zip & " command = command & "7z a -tzip " & zipFolderName & " """ & folderName & """" Response.Write command set objshell = Server.CreateObject("WScript.shell") objShell.exec (command) set objshell=nothing The command that is written in the Response.Write is cd C:\Program Files\7-Zip & 7z a -tzip D:/saveAll/DocumentsZipped.zip "D:/saveAll/Documents" When I run

How to open classic ASP website locally and attach to it in Visual Studio?

不羁岁月 提交于 2020-06-25 09:47:09
问题 Perhaps I haven't found the right post but I have been unable to set up debugging for a ASP website. The website is running on our server but I was told to attach to it locally. Unfortunately, I cannot figure out how to do this. I have a local copy of the website in source control that I can open in Visual Studio but obviously Visual Studio will not run a classic ASP site. I have no idea how to go about attaching to it locally. I have both Visual Studio 2008 and 2010 running on Windows 7. 回答1

What is the best way to iterate through an array in Classic Asp VBScript?

感情迁移 提交于 2020-06-22 13:25:51
问题 In the code below For i = LBound(arr) To UBound(arr) What is the point in asking using LBound ? Surely that is always 0. 回答1: Why not use For Each ? That way you don't need to care what the LBound and UBound are. Dim x, y, z x = Array(1, 2, 3) For Each y In x z = DoSomethingWith(y) Next 回答2: There is a good reason to NOT USE For i = LBound(arr) To UBound(arr) dim arr(10) allocates eleven members of the array, 0 through 10 (assuming the VB6 default Option Base). Many VB6 programmers assume the

Unable to Connect to Azure SQL DB from Azure App Service

老子叫甜甜 提交于 2020-06-16 17:05:31
问题 We have an ASP Classic web application running successfully in an Azure App Service that currently uses SQL Server Authentication to access the Azure SQL Database. We need to change the authentication to Active Directory user. We managed to make this application work from a developer’s workstation accessing the Azure SQL Database, see what worked and did not, below. * Does NOT work on desktop and Does NOT works in Azure Conportail.Open "Provider=SQLOLEDB; Server=tcp:.database.windows.net,1433

(Number and Number) in VBscript

拥有回忆 提交于 2020-06-14 07:51:48
问题 I have some VB script in classic ASP that looks like this: if (x and y) > 0 then 'do something end if It seems to work like this: (46 and 1) = 0 and (47 and 1) = 1 I don't understand how that works. Can someone explain that? 回答1: It's a Bitwise AND. 47 is 101111 AND 1 is 000001 = 000001 while 46 is 101110 AND 1 is 000001 = 000000 回答2: It's doing a bitwise comparison - Bitwise operations evaluate two integral values in binary (base 2) form. They compare the bits at corresponding positions and

classic asp site randomly hangs IIS6

风格不统一 提交于 2020-05-17 04:18:06
问题 We have a classic ASP site that connects to a SOAP server. We have not been able to figure out what causes the website to hang. When we see that the website is hanging we simply restart the soap server and the website works fine(until the next time it hangs). I want to mention that when the website hangs I can get to any page on the server that has .html or .htm extension, but any page that has an .asp extension will simply clock. 回答1: Fire up performance monitor, select Active Server Pages

In ASP, Bit Operator Left shift and Right shift

假如想象 提交于 2020-05-15 09:44:08
问题 Does anyone know left shift and right shift operator sample's? I'm new in ASP. I found Bit operators such as AND,OR,NOT only.. 回答1: For vbscript, left shift is accomplished by multiplication (i.e., var * 2 left shifts one position, var * 4 lefts shifts two positions, etc.) and right shift is accomplished by division (i.e., var \ 16 right shifts four positions). 回答2: There are no direct methods for left and right shift in vbscript, but as this is a simple move of each digit in a set of bits

Expected Statement End If

我的梦境 提交于 2020-04-17 14:27:14
问题 I have the following code setup in a form and I'm getting the "Expected Statement" error. My first time doing this and thought I had the syntax correct, what am I missing? <% If Trim(oQuote("shipmeth"))="FREIGHT" Then Response.Write "Freight" ElseIf Trim(oQuote("shipmeth"))="THRSHLD" Then Response.Write "Threshold" End If %> 回答1: When using nested 2-way conditionals, each conditional must be closed by its own End If : If condition_A Then action_A Else If condition_B Then action_B Else If

Expected Statement End If

两盒软妹~` 提交于 2020-04-17 14:22:43
问题 I have the following code setup in a form and I'm getting the "Expected Statement" error. My first time doing this and thought I had the syntax correct, what am I missing? <% If Trim(oQuote("shipmeth"))="FREIGHT" Then Response.Write "Freight" ElseIf Trim(oQuote("shipmeth"))="THRSHLD" Then Response.Write "Threshold" End If %> 回答1: When using nested 2-way conditionals, each conditional must be closed by its own End If : If condition_A Then action_A Else If condition_B Then action_B Else If