asp-classic

Does Asp support Hash (bcrypt) Passwords like in PHP

点点圈 提交于 2019-12-24 06:44:55
问题 Is there a way to use Hash (bcrypt) Passwords in ASP like in PHP... the following would be the code for PHP but what is the alternative for ASP .. is it the same and just change things around? does ASP support Hash(bcrypt) or is there other way to do ? please engliten me with this situation... PHP would be $link = mysql_connect('localhost', 'wpscanner', 'aUvmxcxvTUPtW8Kw') or die('Not connected : ' . mysql_error()); mysql_select_db('wpscanner', $link) or die ('Not selected : ' . mysql_error()

Alternative of ChrW function

假如想象 提交于 2019-12-24 06:40:09
问题 Is there any alternative function/solution of the ChrW() which accepts value not in range is -32768–65535 like for character code 􀂇 which leads to "􀂇". Using ChrW() gives error "Invalid procedure call or argument" So I want an alternative solution to convert the charactercode to the actual character. Code: Function HTMLDecode(sText) Dim regEx Dim matches Dim match sText = Replace(sText, """, Chr(34)) sText = Replace(sText, "<" , Chr(60)) sText = Replace(sText, ">" , Chr(62)) sText = Replace

Wrong charset in ASP classic loaded via AJAX

狂风中的少年 提交于 2019-12-24 06:39:08
问题 I have issue with dynamic loading of part of content on ASP classic page. I use AJAX to load on page dynamically, depending on dropdown selected option. Generated contains some Labels for containing dropdowns and option text inside of dropdowns. Labels are constants encoded in UTF-8 and contain some western European accented characters, and option texts are loaded from database, contain accented characters too but are coded in ANSI. tags are set to utf-8 but it affects only first load of page

Session and APP Scope for COM objects

有些话、适合烂在心里 提交于 2019-12-24 05:45:13
问题 We are going to develop ASP pages for a WIN CE device. The web server running on the system is httpd. I have a few doubts on the scope of com objects Does WinCE(httpd) ASP support Session and App Scope? Does page scope alone is supported in ASP in Wince? What should I do to introduce session and app Scope? Where can I get more information on this? 回答1: Does WinCE(httpd) ASP support Session and App Scope? According to MSDN: Windows CE does not provide support for the Session or Application

Natural sort algorithm implementation woes

一笑奈何 提交于 2019-12-24 04:44:09
问题 I have Googled ASP Classic implementations of the natural sort algorithm to no avail. Best I was able to find was from Dave Koelle, which was from a question on SO. Issue is that since I need to implement this algorithm in ASP Classic, I don't have access to certain functions such as Collections.sort(your list, new AlphanumComparator()); Ideally, I'd like to pass an array to a function and have it return to me the ordered array. Any ideas as to what I could do? Thank you. 回答1: You haven't

Office 365 and Classic ASP vs. VB.net SMTP Settings

狂风中的少年 提交于 2019-12-24 04:09:05
问题 There are several questions about classic ASP and Office 365, but none that seem to answer my particular scenario, so here goes. I set up an email account on Office 365 and am trying to do an SMTP test with the following code: Dim ObjSendMail, mailSubject, mailBody Set ObjSendMail = CreateObject("CDO.Message") mailSubject = "Test" mailBody = "Test" ObjSendMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 ObjSendMail.Configuration.Fields.Item("http:

Calling ASP.net from Classic ASP

时光毁灭记忆、已成空白 提交于 2019-12-24 03:43:30
问题 I am new to ASP and ASP.net. I have just started working on a legacy ASP classic project and been given a sample that makes a remote call in ASP.net. Is it possible to call the ASP.net page from ASP? Are you they compatible. My impression so far is that they aren't compatible, but perhaps. I'm wrong. I mean the .net project could be called with parameters and kept seperate I guess? Does anyone have any experience with similar problems or have any tips they can share? 回答1: You can create a COM

RC4 Encryption and decryption in UTF-8 ASP classic

◇◆丶佛笑我妖孽 提交于 2019-12-24 03:28:00
问题 Is there a way to make this work in an ASP page? It was working fine with charset windows-1253 but now I have to convert my site to UTF-8 and the only problem I have is encryption and decryption. I have encrypted members registration passwords and now with UTF-8, after decryption passwords looks like this: 2��8��6 Please I nead some help (sorry for my English). This is RC4 code: Dim sbox(255) Dim rc4Key(255) Sub RC4Initialize(strPwd) dim tempSwap, a, b intLength = len(strPwd) for a = 0 To 255

Save Base64 to an image using Classic ASP

对着背影说爱祢 提交于 2019-12-24 03:14:56
问题 I have been trying to save a base64 file as an image from server side using classic ASP. What I want is it to autosave the file to a specific location and give it a filename, Now I am fine coding that aspect of it. However I can't get the code to save the image without first rendering on a browser. This isn't going to work for me as the script I am using will be an automatic export and have no user input. Code follows as yet that renders in the webpage and asks the user where to save the

Output ADODB.RecordSet as JSON

时光怂恿深爱的人放手 提交于 2019-12-24 03:01:24
问题 I'm trying to change my application so that it outputs JSON instead of HTML when it makes an AJAX request for some data. I have an ADODB RecordSet. I need to loop through it row-by-row and add/change/remove different values. Then I need to take all the modified rows and response.write them as JSON. I'm using JSON2.asp so my application already supports JSON.parse & JSON.stringify but I can't get it to spit out the multi-dimensional array as JSON. set rs = conn.execute(strQuery) if Not rs.EOF