asp-classic

using Ajax to send information to classic ASP

白昼怎懂夜的黑 提交于 2019-12-14 03:17:52
问题 I have a reset button on my html table. When it's clicked, it gets information related to its row, particularly the 'record ID' and 'Active'. I'm trying to take the record Id number and send it to my asp page called resetinbound.asp This is my first time using AJAX so I'm not sure if what I'm doing is correct but here is the code for the On Click: $(function(){ $('button').on('click', function(){ var tr = $(this).closest('tr'); var RecID = tr.find('.RecID').text(); var active = tr.find('

How to debug COM object in Visual Studio 6.0 that is created in an ASP page?

丶灬走出姿态 提交于 2019-12-14 02:23:08
问题 I have an old C++ COM component which has to stay in Visual Studio 6.0 format. I can't for the life of me figure out how to debug the code in the actual COM component. I'm able to build it in debug mode, add breakpoints and attach it to the dllhost.exe process, but the Visual Studio environment will only show me the disassembly from dllhost.exe and not my source code (It also doesn't stop on the breakpoints). I remember a while ago there was a way to make IIS (or inetinfo.exe) the target of

Set binary/base64 data as attachment in VB Script CDO.Message

只谈情不闲聊 提交于 2019-12-14 02:19:19
问题 I am trying to send out an email with attachment as PDF. I have my attachment data in binary/Base64, but when I am trying to write this to the stream, it is not working. Here is my code. I am using upload class from here - http://www.codeguru.com/csharp/.net/net_asp/article.php/c19297/Pure-ASP-File-Upload.htm <!--METADATA TYPE="TypeLib" FILE="C:\windows\system32\cdosys.dll" --> <!-- #include file="upload.asp" --> <% ' Create the FileUploader Dim Uploader, File Set Uploader = New FileUploader

How to mimic ASP Server.URLEncode in ASP.NET?

本秂侑毒 提交于 2019-12-14 02:16:44
问题 In ASP : Server.URLEncode("+&(). -*<>/\|") ' returns %2B%26%28%29%2E+%2D%2A%3C%3E%2F%5C%7C In ASP.NET Uri.EscapeDataString("+&(). -*<>/\|") // returns %2B%26().%20-*%3C%3E%2F%5C%7C HttpUtility.UrlEncode("+&(). -*<>/\|") // returns %2b%26().+-*%3c%3e%2f%5c%7c Is there any elegant way how to mimic old ASP behavior in ASP.NET? 回答1: You can use a regular expression to match the characters that you want to convert, and a lambda expression for creating the hex code: string input = @"+&(). -*<>/\|";

How to use debug points?

断了今生、忘了曾经 提交于 2019-12-14 01:28:49
问题 I just downloaded Notepad++ because I need to work on a classic asp project. I'm a complete beginner with classic asp, and have been spoiled with asp.net and visual studio. I noticed Notepad++ has debug points you can place beside the line numbers. Is there a way I can step through asp script code using those? If not what is the best / easiest way to debug asp classic scripts? Thanks 回答1: As a suggestion: if you are a beginning asp-developer, don't forget to put <% Option Explicit %> at the

Can a VB6 project use a .Net .dll

只愿长相守 提交于 2019-12-14 01:14:43
问题 I have a VB6 project. My question is can I call a .NET .dll that has all the business rules of the project (from the VB6 application)? Basically I have a VB6 project with a classic ASP project calling a vb6/ActiveX .dll. The requirement is to figure out the best way to upgrade the application. So, if I update the ActiveX .dll can the VB6 app call that new .NET .dll? I guess the same question is viable for the classic ASP project as well... Thanks! 回答1: Yes, but you need to make the .Net types

ASP using variables from previous page in SQL query

落爺英雄遲暮 提交于 2019-12-13 23:47:10
问题 On my first page I have an array defined as: dim selection selection = Array("name", "city") On the following ASP page I'm trying to call to those same variables for an SQL query: dim selection selection = array(request.form("name"), request.form("city")) In my SQL query: sqlstr = "SELECT * from Users where name='" + selection(0) + "' and city= '" + selection(1) + "' This doesn't work, and I've tried tooling around with it but I can't seem to find a working solution. What am I missing? 回答1:

Forum software ASP classic [closed]

点点圈 提交于 2019-12-13 22:29:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed last year . For a website I need a forum and I'm looking for code written in classic ASP. I know about phpBB and Simple Machines, but that's written in PHP. I'm used to use (classic) ASP for websites, because I think ASP.NET is to much overkill for simple websites. Or should I definitely switch to PHP? I'm thinking about

VBScript runtime error '800a01a8' Object required:

十年热恋 提交于 2019-12-13 20:09:29
问题 I'm completely new to VB and have run into what I imagine must be a common error for noobs. I'm trying to split a string into an array with this snippet: Dim myString, myArray myString = "split-this" myArray = myString.Split("-") This gives me the error: Microsoft VBScript runtime error '800a01a8' Object required: 'split-this' Could someone kindly tell me what I'm missing? 回答1: myArray = Split(myString, "-") 来源: https://stackoverflow.com/questions/21934624/vbscript-runtime-error-800a01a8

VBScript Runtime Error '800a000d'

穿精又带淫゛_ 提交于 2019-12-13 19:02:07
问题 In our business, we use a security wizard to control and administer active directory security and also to have an audit trail of changes made. This is a SQL database with an ASP front end, which also has communication to our Active Directory. The person who wrote the wizard has since our site to work for another part of the company and I am attempting to get something working which is broken. A simple overview of the system is: User submits a request to an authoriser, who then accepts or