asp-classic

Will classic ASP pages run on versions of Windows past Windows 7?

不羁岁月 提交于 2019-12-23 07:58:53
问题 We have a legacy system that uses both classic ASP and VB6/COM+, and are planning a migration to the .NET stack. We are attempting to develop a migration schedule, and one key driving point will be "when will our old stuff stop working?". For VB6/COM+, Microsoft has stated that it has no plans to include the VB6 runtime in versions of Windows after Windows 7 (yes I am aware that this is open to interpretation). I have yet to find a similar statement for classic ASP. I have seen people

adding custom header with classic asp

China☆狼群 提交于 2019-12-23 07:44:27
问题 I was wondering if its possible to add custom header with classic asp. In other words, I am looking for classic asp equivalent of .net's Response.AddHeader(). i.e. HttpContext.Response.AddHeader("customheadertruefalse","1"); 回答1: Use Response.AddHeader (as JohnFx already answered). Here is sample from one of my working asp pages : Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "attachment; filename=ranking-export.csv" 回答2: Don't mean to be that guy

Turn off automatic quote insertion in Visual Studio 2010

耗尽温柔 提交于 2019-12-23 07:39:17
问题 I am editing a huge number of legacy ASP pages that have been converted over to C#. One problem is that the HTML attributes need to be adjusted to correct some double quote problems. My problem is that when I add a double quote VS dutifully inserts the closing quote in the wrong place. I then need to go an delete that quote and enter the closing quote. I also have to watch that when I insert the closing quote it does not throw in another extra quote. I googled for a solution, I am sure it is

Password mismatch while logging to sql server

╄→尐↘猪︶ㄣ 提交于 2019-12-23 07:04:47
问题 Alright, I have a classic asp application and I have a connection string to try to connect to db. MY connection string looks as follows: Provider=SQLOLEDB;Data Source=MYPC\MSSQLSERVER;Initial Catalog=mydb;database=mydb;User Id=me;Password=123 Now when I'm accessing db though front-en I get this error: Microsoft OLE DB Provider for SQL Server error '80040e4d' Login failed for user 'me'. I looked in the sql profiler and I got this: Login failed for user 'me'. Reason: Password did not match that

Password mismatch while logging to sql server

℡╲_俬逩灬. 提交于 2019-12-23 07:04:09
问题 Alright, I have a classic asp application and I have a connection string to try to connect to db. MY connection string looks as follows: Provider=SQLOLEDB;Data Source=MYPC\MSSQLSERVER;Initial Catalog=mydb;database=mydb;User Id=me;Password=123 Now when I'm accessing db though front-en I get this error: Microsoft OLE DB Provider for SQL Server error '80040e4d' Login failed for user 'me'. I looked in the sql profiler and I got this: Login failed for user 'me'. Reason: Password did not match that

Classic ASP Error: Operation is not allowed when the object is closed

隐身守侯 提交于 2019-12-23 06:08:13
问题 I have cruised and implemented code from some of the other responses to this question, but I'm still having no luck. I am still getting the error. If ((bReport And bIsDate And CheckPermissions("lotsales")) Or Request.QueryString("report")) Then OpenDB Dim oRs, sSQL, sSQL2, iCancellations, iSales, sDate, sInitDate, sEndDate, iPhaseID, iPhaseNumber, rowCount sInitDate = Request("startDate") sEndDate = Request("endDate") sSQL = "sp_get_lot_sales_test '" & sInitDate & "', '" & sEndDate & "', " &

which form of encryption is used in this asp function

妖精的绣舞 提交于 2019-12-23 05:29:21
问题 Below asp function is used to encrypt passwords. Function EncryptPassword(vPwd) vTempPwd = "" EncryptPassword = "" For i = 1 To Len(vPwd) vTempPwd = vTempPwd & Chr((255 - Asc(Mid(vPwd, i, i))) / 2) Next For i = Len(vPwd) + 1 To 10 vTempPwd = vTempPwd & CStr(i - Len(vPwd)) Next EncryptPassword = vTempPwd End Function Can anyone just tell me which method of encryption is this? I want to use the same method of encryption is asp.net. 来源: https://stackoverflow.com/questions/38127127/which-form-of

vbscript skipline and cr line endings

冷暖自知 提交于 2019-12-23 05:06:05
问题 For some reason when I use the objFile.ReadLine method to read my text file, the entire file is returned as one long line. The file I'm opening is using CR line endings instead of CRLF or LF line endings. Does anyone know how I can read this file line by line in vbscript if ReadLine does not recognize CR line endings? Code is below: Set objFSO = CreateObject("Scripting.FileSystemObject") Set txsInput = objFSO.OpenTextFile("C:\Path\To\My\File.csv",1) 'Read lines one by one Do While txsInput

Use Request.Files in Classic ASP

妖精的绣舞 提交于 2019-12-23 04:56:31
问题 I want to use dhtmlx vault control for file upload in classic asp. I've used his control in ASP.NET & it works well. But in classic ASP, I'm not able to get files using Request.Files. Can anyone help me for this. The code I'm using for file upload is: var conf = { container: "vaultObj", uploadUrl: "vaultupload.asp", autoStart: false, skin: "dhx_skyblue" }; var myVault = new dhtmlXVaultObject(conf); vaultupload.asp is the file on which I want to write code to upload images. But I'm not able to

ASP Connections to SQL 2008 Named Instance

≡放荡痞女 提交于 2019-12-23 04:53:31
问题 I have an SQL 2008 server running three instances. Each instance is assigned a unique IP address and listens on port 1433. Only TCPIP is enabled. All of my ASP.Net applications connect successfully using the IP address, with a connection string similar to: User ID=SQLUser;Password=userpass;Database=TestDB;Data Source=sqlserver My ASP applications will only connect to the default instance; I am getting this error whenever I try to connect to another instance: Microsoft OLE DB Provider for ODBC