asp-classic

ASP Weird Unspecified Error - 80004005

ε祈祈猫儿з 提交于 2019-12-19 03:32:48
问题 I had to work on an already made website, just adding some small module While i was updating, there was many files called myDB.mdb in the different subfolders i wanted to make sure that my app is connecting the right database so i started renaming subfolder...at one of those subfolders, i refreshed,the main site and mine stopped working i renamed back to the correct name.. refresh... refresh... refresh.. i am still refreshing and i started another browser.. it is giving a connection problem

ASP Weird Unspecified Error - 80004005

坚强是说给别人听的谎言 提交于 2019-12-19 03:32:08
问题 I had to work on an already made website, just adding some small module While i was updating, there was many files called myDB.mdb in the different subfolders i wanted to make sure that my app is connecting the right database so i started renaming subfolder...at one of those subfolders, i refreshed,the main site and mine stopped working i renamed back to the correct name.. refresh... refresh... refresh.. i am still refreshing and i started another browser.. it is giving a connection problem

Hex-Value in Visual Basic

我怕爱的太早我们不能终老 提交于 2019-12-18 18:50:07
问题 Can someone just help me refresh my mind? How do you specify hex values in a Visual Basic 6 / VBScript Source? It's not 0x ABCD as it is in C++, that's what I can remember... It was something similar... But what? 回答1: Try &H ABCD, that's how it works for most BASIC languages. 回答2: VBScript \ VBA \ VB6 (and lower): Dim MyValue As Integer MyValue = &h1234 VB (.NET Framework) : Dim MyValue As Integer = &h1234 Versions are usually backwards compatible syntax-wise, you cannot always use newer

How to tell if a db update was successful?

别说谁变了你拦得住时间么 提交于 2019-12-18 17:14:53
问题 I'm trying to modify some legacy ASP classic code, and I don't know much about ASP. How do I tell if a database Insert, Update, or Delete failed? By 'failed', I mean it either threw an error or affected zero rows. Here's the code that was already in the ASP file that sets up the database connection: On Error Resume Next Set objConn = Server.CreateObject("ADODB.Connection") objConn.Open "Provider=MSDAORA;Data Source=dbname;User Id=dbuser;Password=dbpw;" There are a few Select statements that

asp CDO.Message.1 error '80040213' The transport failed to connect to the server. /check.asp, line 25

房东的猫 提交于 2019-12-18 16:59:49
问题 CDO.Message.1 error '80040213' The transport failed to connect to the server. /check.asp, line 25 please help to solve this problem check this code <%@ Language=VBScript %> <html> <head> </head> <body> <% dim to_field, message to_field = Request.Form("to_field") message = Request.Form("message") 'Create the e-mail server object Set objCDOSYSMail = Server.CreateObject("CDO.Message") Set objCDOSYSCon = Server.CreateObject ("CDO.Configuration") 'Out going SMTP server objCDOSYSCon.Fields("http:/

Uploading a file in classic asp

荒凉一梦 提交于 2019-12-18 14:47:08
问题 I've always used the following script to upload files in classic asp, but it stopped working giving me this error vbscript runtime error 800a01a8 object required 'Item(...)' I investigated a little and i think that the problem is in the file upload.asp with the function BuildUploadRequest, but i really can't understand why form <form method="POST" action="landing-page.asp" ENCTYPE="multipart/form-data"> <input type="file" name="file"> <input type="hidden" name="key" value="0"> <input type=

An error occurred in the secure channel support - Classic ASP HTTP Request

≡放荡痞女 提交于 2019-12-18 12:07:52
问题 I have a classic ASP website running on a Windows Server 2012 box. One page makes a HTTP request to another application over https using code like this: Sub ShopXML4http(url, inStr, outStr, method, xmlerror) Dim objhttp Set objhttp = Server.CreateObject ("MSXML2.ServerXMLHTTP.6.0") objHttp.open method, url, false If Method="POST" Then objHttp.Send instr Else objHttp.Send End if outstr=objHttp.responseText Set objhttp=nothing End Sub This code works fine almost all of the time (thousands of

Regex to match last space character

南笙酒味 提交于 2019-12-18 11:59:31
问题 I need some help. I am looking for a regex that would match the last space character in a string. I am using JavaScript and classic ASP. I have a long string of text which I trim to 100 characters. I would like to remove the last character to avoid a spelling mistake if the trim cuts a word due to the 100 characters limit. regex.replace(/[ ]$.*?/ig, ''); Anybody with ideas? Thanks. 回答1: From my understanding, you need to remove the last space and everything after it, right? str = str.replace(

Performing login to https website via Android app

放肆的年华 提交于 2019-12-18 10:36:33
问题 First off, I'm pretty newb at this. I'm new to Android, to asp, to javascript, to http even. I'm trying to build an Android app that allows me to login to my school's website and pull data off it, ultimately I hope to do something like insert my timetable's data into Android's calendar entries. However I'm having trouble logging in. Here's the website: https://sso.wis.ntu.edu.sg/webexe88/owa/sso_login2.asp What I'm doing currently is doing a http POST to the above-mentioned URL and I'm hoping

Current Universal time in classic asp

空扰寡人 提交于 2019-12-18 09:36:26
问题 How can I get the current time as Universal time in classic asp. I know how to get in C# and I am getting the universal time in c# with following line ((DateTime.Now).ToUniversalTime()).ToString("s") and this code gives me time like this 2012-07-09T10:29:49 But I want to know the equivalent in classic asp. Thanks 回答1: According to u229.no, there isn't any way for ASP Classic to convert to UTC. Take a look at the code the author provided below. The GetServerGMT routine will return something