asp-classic

Classic ASP - ADO execute Stored Procedure passing in parameters

ぃ、小莉子 提交于 2020-01-10 09:04:17
问题 I am needing to pass parameters into a stored procedure with Classic ASP. I do see some people using the Command object and others NOT using it. My sproc params are like this: @RECORD_NUMBER decimal(18,0), @ErrorType nvarchar(100), @INSURANCE_CODE smallint, @CompanyId int, @INS_ID_NUM nchar(22) Then I'm trying to do this: Dim conn, rsSet,rsString, cmd Dim RN,ET,IC,CI,IIN RN = Request.Form("Record_Number") ET = Request.Form("ErrorType") IC = Request.Form("INSURANCE_CODE") CI = Request.Form(

Classic ASP - ADO execute Stored Procedure passing in parameters

霸气de小男生 提交于 2020-01-10 09:02:52
问题 I am needing to pass parameters into a stored procedure with Classic ASP. I do see some people using the Command object and others NOT using it. My sproc params are like this: @RECORD_NUMBER decimal(18,0), @ErrorType nvarchar(100), @INSURANCE_CODE smallint, @CompanyId int, @INS_ID_NUM nchar(22) Then I'm trying to do this: Dim conn, rsSet,rsString, cmd Dim RN,ET,IC,CI,IIN RN = Request.Form("Record_Number") ET = Request.Form("ErrorType") IC = Request.Form("INSURANCE_CODE") CI = Request.Form(

Classic ASP - ADO execute Stored Procedure passing in parameters

回眸只為那壹抹淺笑 提交于 2020-01-10 09:01:09
问题 I am needing to pass parameters into a stored procedure with Classic ASP. I do see some people using the Command object and others NOT using it. My sproc params are like this: @RECORD_NUMBER decimal(18,0), @ErrorType nvarchar(100), @INSURANCE_CODE smallint, @CompanyId int, @INS_ID_NUM nchar(22) Then I'm trying to do this: Dim conn, rsSet,rsString, cmd Dim RN,ET,IC,CI,IIN RN = Request.Form("Record_Number") ET = Request.Form("ErrorType") IC = Request.Form("INSURANCE_CODE") CI = Request.Form(

operation not allowed when the object is closed when running more advanced query

醉酒当歌 提交于 2020-01-10 05:28:05
问题 When I try to run a more advanced SQL query on an ASP page I get this error: operation not allowed when the object is closed When I run this code it's working: ... sql = "SELECT distinct team FROM tbl_teams" rs.open sql, conndbs, 1, 1 ... But when I run this code (and this code is working if I run it in Microsoft SQL Server Management Studio), I get the error... ... sql = "DECLARE @cols AS NVARCHAR(MAX), @query AS NVARCHAR(MAX), @orderby nvarchar(max), @currentYear varchar(4) select

How to Compress JSON with ASP?

梦想的初衷 提交于 2020-01-10 04:20:07
问题 I have a large JSON data string that's 757KB. I tried GZIP'ing it, which successfully reduced file size down to 143KB. But, in it's GZIP'ed state, my JQUERY function can't make use of the compressed JSON data. Any suggestions on how to compress JSON in an IIS/ASP environment and still be able to use the JSON data in a JQUERY function? 回答1: Hope this helps: Activate Dynamic Compression Open SystemDir (C:\Windows\System32) and find this file: inetsvr\config\applicationhost.config Find the

How to read text file in classic asp

大兔子大兔子 提交于 2020-01-10 04:02:45
问题 I am uploading image.While uploading images i am saving image name and the link for that iage in one textfile. like this, abc.jpeg,http://google.com Now i want to display all that images with corresponding links using classic asp. How should I do this? Please help. I used this asp code: <% For Each FileName in fold.Files Dim Fname Dim strFileName Dim objFSO Dim objTextFile Dim URLString Dim strReadLineText Fname= mid(FileName.Path,instrrev(FileName.Path,"\\")+1) strFileName = "../admin/Links

msxml3.dll error '80072ee2' in ASP Page

柔情痞子 提交于 2020-01-09 11:13:10
问题 We have just moved to a new dedicated server that has Windows 2008 and SQL Server 2008. I am trying to access an ASP page on the same server using Server.CreateObject("MSXML2.ServerXMLHTTP") . On our previous 2003 server this worked correctly, however with the new 2008 server the operation just times out. Here is the code: strURL = "http://www.storeboard.com/profile/profile_view.asp?MemberID=" & MemberID & "&sid=" & cSession.SessionID Set oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")

msxml3.dll error '80072ee2' in ASP Page

十年热恋 提交于 2020-01-09 11:10:44
问题 We have just moved to a new dedicated server that has Windows 2008 and SQL Server 2008. I am trying to access an ASP page on the same server using Server.CreateObject("MSXML2.ServerXMLHTTP") . On our previous 2003 server this worked correctly, however with the new 2008 server the operation just times out. Here is the code: strURL = "http://www.storeboard.com/profile/profile_view.asp?MemberID=" & MemberID & "&sid=" & cSession.SessionID Set oXMLHttp = Server.CreateObject("MSXML2.ServerXMLHTTP")

RegEx for Password Validation (ASP)

ぐ巨炮叔叔 提交于 2020-01-09 10:58:39
问题 Can someone suggest a regular expression for validating a password with the following conditions. Password must be at least 12 characters long Password must not begin with a number Password must have 3 out of the following 4 characteristics: At least one upper case letter (A-Z) At least one lower case letter (a-z) At least one number (0-9) At least one of the following symbols: hyphen ( - ), underscore ( _ ), dollar ( $ ), pound/hash ( # ) I'm using vbscript and classic ASP. Thanks in advance

Asp XML Parsing

不打扰是莪最后的温柔 提交于 2020-01-09 10:54:10
问题 I am new to asp and have a deadline in the next few days. i receive the following xml from within a webservice response. print("<?xml version="1.0" encoding="UTF-8"?> <user_data> <execution_status>0</execution_status> <row_count>1</row_count> <txn_id>stuetd678</txn_id> <person_info> <attribute name="firstname">john</attribute> <attribute name="lastname">doe</attribute> <attribute name="emailaddress">john.doe@johnmail.com</attribute> </person_info> </user_data>"); How can i parse this xml into