asp-classic

How do I pass a parameter from ASP to XSL?

。_饼干妹妹 提交于 2019-12-11 09:38:29
问题 I'm writing a simple asp page to show a team rota based on some XML. Here's the XML: <rota> <shift date="20091201" primary="Chan" secondary="John" notes="notes"></shift> <shift date="20091202" primary="Mike" secondary="Alex" notes="notes"></shift> <shift date="20091203" primary="Ross" secondary="Mike" notes="notes"></shift> <shift date="20091204" primary="Neil" secondary="Ross" notes="notes"></shift> </rota> I want my asp page to show today's rota details and maybe the details for the next

Classic ASP - Stored procedure to recordset returns “-1” records?

假如想象 提交于 2019-12-11 09:37:22
问题 I am trying to execute a stored procedure using Classic ASP, with two parameters and return the results into a record set that I can loop through and display into a table via a DO WHILE loop. The problem is, however, I do not get any results when I try and execute the below code. When I use the "RecordCount" property it returns -1 records. Normally if it were a standard SQL query I would use Response.Write to get the query text and diagnose in SSMS, but i'm not sure how I can troubleshoot

Best way to display correct value after a specific date Classic ASP SQL?

大兔子大兔子 提交于 2019-12-11 09:27:38
问题 I've been working on a website which i'm having problems with and need some help please!! We have a database with date values and cash amounts ie 22/06/2014 15.00 23/06/2014 15.00 28/06/2014 15.00 etc... In my html/asp code I have a table which shows the total amount made today, this month and last month, the problem is our month runs from the 11th of the month to the 10th of the next month. Output Today this Month Last Month £15.00 £135.00 £150.00 So the table is showing the correct amount

MSXML2.XMLHTTP Request to validate entered URL in ASP Classic

我们两清 提交于 2019-12-11 09:26:10
问题 Thanks in advance for any help received. I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works. There are 3 possible outcomes I want to check for: A status of 200 - OK, A status of 500 - Server Error, Or a status of 404 - page not found. When executing the following code in ASP classic I get a status code of 12007 when I should be getting 404. Is this because it can't find a webserver to return a code of 404? Function CheckURL(vURL) ON

Compress PDF files on Windows Server automatically

浪子不回头ぞ 提交于 2019-12-11 09:21:43
问题 I have a user PDF upload submission system whereas quite often users will upload very large sized PDF's that have been originally meant for Print when we only need them for web sized viewing. I need to automatically compress them on the server. We are running Windows Server 2003 . Right now, we just have user upload PDF via SoftArtisans.FileUp method. My question is what is the best or easiest way to do this on the server automatically after user uploads PDF? 回答1: Why not try this site. Used

C# dll to use in classic ASP

倾然丶 夕夏残阳落幕 提交于 2019-12-11 09:09:38
问题 I have the following C# code namespace testDll { class testDLL { public int add(int val) { return val + 5; } } } Created dll using Visual Studio Express 2010 i.e going to projet properties, changing the output type to classlibrary and Make assembly COM visible. Everytime I try to register the dll using regsvr32.exe I get error dllregisterserver entrypoint was not found 回答1: you cannot Register a .net dll with regsvr32.exe. you have to use regasm.exe. look here for a description generally you

Split string in classic asp

為{幸葍}努か 提交于 2019-12-11 09:04:41
问题 I am working in classic ASP and have a string as below : A B C Now I want to split the string, I have tried vbCrLf, vbNewline , vblf and but none of them work. Please suggest me an alternative to split the string. I am in a bad fix. 回答1: Are you sure, you have newlines in the string? First you can output all character codes to find out, by which character to split: dim i, c for i = 1 to len(my_string) c = mid(my_string, i, 1) Response.Write "CHAR: " & ASC(c) & " = " & c next Then you have 2

“Data source name not found and no default driver specified” connecting mysql

不羁岁月 提交于 2019-12-11 08:43:48
问题 Due to some technical reasons, I had to change my database from sql server to MySQL. But I am getting the following error, I cannot connect to the database..! Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified Set ObjConn = CreateObject("ADODB.Connection") ObjConn.Open ("DRIVER={MySQL ODBC 5.0.96 Driver};SERVER=68.128.172.38;DATABASE=xxx;UID=xxx;PWD=xxx") 回答1: here you go with a sample

Calling a web service from http to https

笑着哭i 提交于 2019-12-11 08:39:25
问题 Here is my scenario... I'm working on a server that is http:// in Classic ASP The company purchased a web service that verifies information, this web service is https://xxx.svc?etc What can I do to call this service? I've tried AJAX with jQuery, I've tried XmlHTTPRequest and XDR, and I'm just about out of ideas. I'm running into the same error every time.."Access Denied" when I call "open" on my object. I've heard a few things about Same Domain policies and Cross Site Scripting, but it's 2012

ASP running in 64 bits environment with Access database

冷暖自知 提交于 2019-12-11 08:33:31
问题 I have a customer since 2003 running a simple web site built in asp 3.0 with an access database file (.mdb). Recently that customer aquired a new server that came with windows 2003 server 64 bits and the web site doesn´t function any more, showing this message: ADODB.Connection error '800a0e7a' Provider cannot be found. It may not be properly installed. Of course I allready did some web research and found that it seems to be a problem with 64 bit environment using mdb files (access database).