asp-classic

Problem with date day/month reversing on save

℡╲_俬逩灬. 提交于 2019-12-13 03:28:18
问题 We have a problem affecting the production environment only. We have a VB6/ASP website that allows for data in a database table to be hand edited. It looks alot like an editable datagrid. One of the editable columns is a date and when the record is saved dates day/month are being reversed. 03/11/2008 becomes 11/03/2008, if you were to resave the record the date is again 03/11/2008. I have checked the DB value and it is indeed being reversed however the same identical code on the test systems

Classic ASP: Please Wait page while processing code

杀马特。学长 韩版系。学妹 提交于 2019-12-13 03:23:35
问题 A form on page1.asp submits to page2.asp . Page2 takes say a minute to do it's work. To the end user, the browser stays on page1 while it waits for the response from page2. How can I show a please wait page instead - is the best way just using javascript to change page1 to say Please Wait when the submit button is pressed? 回答1: You need to just display your Please Wait onClick when the user browses to the next page, and then make sure to set Response.buffer = True in your Page 2. That will

Global.ASA does not work in IIS7.5

时光怂恿深爱的人放手 提交于 2019-12-13 03:21:15
问题 I have many projects written in old classic ASP where Global.asa used to work perfectly fine. Since I have installed Windows 7 with IIS7.5, none of my projects are working. Below is the code for Global.asa <Script language=vbscript runat = server> Sub Application_OnStart() dim objConn, connectionString set objConn = Server.CreateObject("ADODB.Connection") connectionString = "DSN=otsDSN; UID=admin;PWD=;" objConn.ConnectionTimeout = 5 The error comes in this line. Have referred many websites,

Insert image in word file in ASP

大城市里の小女人 提交于 2019-12-13 02:58:49
问题 Im trying to automatically make some word file on server using ASP Classic. It works fine but the only problem is when I download the files there is no picture in them instead I get something like place holder. Here is my code: set fso = createobject("scripting.filesystemobject") Set act = fso.CreateTextFile(server.mappath("/") & file_being_created, true) act.WriteLine("<html xmlns:v=""urn:schemas-microsoft-com:vml""") act.WriteLine("xmlns:o=""urn:schemas-microsoft-com:office:office""") act

Using Crystal Reports XI with classic asp

早过忘川 提交于 2019-12-13 02:57:06
问题 I am trying to use Crystal Reports XI for viewing/edits reports in classic ASP. I run into following error on this line : Set session ("oApp") = Server.CreateObject("CrystalRuntime.Application") Error: Server object error 'ASP 0177 : 800401f3' Server.CreateObject Failed I went through all the solutions found online but couldnt find resolution. I am using IIS7. Please help. 回答1: There are many DLL's that have to be registered. The easiest way is to install the runtime libraries from SAP (the

Json to SQL ASP classic

北城以北 提交于 2019-12-13 02:38:36
问题 Can´t figure out how to solve this with ASP Classic, an external server will send me some Json to my site ex. www.mypage.com/getjson.asp {"Userid":"112233","Member":Tom} How can I fetch this and check if the Userid already exist, otherwise put it in the SQL If the userid exist I just have to answer response.Write "{""Userid"": true}" Can I "convert" it to a querystring or somthing ? Edit: Thanks for all help, but I coundn´t get it to work with the tips in this thread But I managed to get the

ASP3 And ASP.NET session sharing

雨燕双飞 提交于 2019-12-13 02:36:30
问题 Is there a way to share the session between ASP3 And ASP.NET? Thanks 回答1: Despite all of Microsoft's best efforts to make ASP and ASP.NET coexist effortlessly, one area remains a stumbling block... session state. Fortunately the advantages of ASP.NET's upgraded session state management far outweigh the inconvenience of not being able to pass "Classic" session information to .NET. Unfortunately there is no simple solution; the most I can offer is an easy to implement workaround. In trying to

What happens when NOT closing recordsets in classic asp?

老子叫甜甜 提交于 2019-12-13 02:35:33
问题 In legacy applications at work, i see not closed recordsets scattered on lots of pages. What consequences does this have? Does the connection close automatically? Are resources released at the end of every request? Update: Another question related to this problem i think txn! 回答1: What consequences does this have? Resources don't get freed up as quickly, and depending on the rest of the code performance will suffer. Does the connection close automatically? Are resources released at the end of

CDO.Message.1 error '80040220'

安稳与你 提交于 2019-12-13 01:02:00
问题 I have hosted my site, while sending mail gives me error as below: CDO.Message.1 error '80040220' The "SendUsing" configuration value is invalid. /contact.asp, line 131 I have following code: <% sch = "http://schemas.microsoft.com/cdo/configuration/" Set cdoConfig = CreateObject("CDO.Configuration") With cdoConfig.Fields .Item(sch & "sendusing") = 2 ' cdoSendUsingPort .Item(sch & "smtpserver") = "<my-smtp-port>" .Item(sch & "smtpserverport") = 25 .update End With Set cdoMessage = CreateObject

MS Access database in Windows Server 2003 using classic ASP

谁说胖子不能爱 提交于 2019-12-13 00:57:53
问题 I'm migrating a classic ASP site from Windows Server 2003 to Windows Server 2008 R2. The problem is that the site are using a Microsoft Access database and using Microsoft.Jet.OLEDB.4.0 as provider. I have search the Internet for a solution, but can't find any driver that work in 64 bit Windows. Is it any other provider that I can use to access the database? 回答1: I found the solution I changed the connections string to "Driver={Microsoft Access Driver (*.mdb)};Dbq=c:\database.mdb;Uid=Admin