asp-classic

Read a CSV File Delimited with Hash

无人久伴 提交于 2019-12-11 08:30:40
问题 I have a CSV export from an LDAP DB and I have to read data with a Classic ASP page. The format of the CSV file is like CRDLVR47E67L781V#1653#CORDIOLI#ELVIRA#658#elvira.cordioli@sender.at#SI I can read the file line by line, and have to split the line manually. If I change the # value to a comma I can access the file by column. Can I make the asp page able to access the file by column, in order to obtain the single value keeping the # separator? My connection string is Set oConn = Server

Button doesn't work in Chrome

ε祈祈猫儿з 提交于 2019-12-11 08:24:09
问题 I have <button name="foo" value="bar" onclick="submit()" >foobar</button> When I click the button in firefox, the value is transferred (is foo) and I can read the value like the following: dim mode : mode = lcase(request("foo")) But the value is empty when I perform the same action in Chrome. Could anyone help? 回答1: Different browsers have different default submit behaviors for buttons. If you want a button to submit the form (and thus post its name and value pair), you'll have to use:

CDO Classic ASP form not working

守給你的承諾、 提交于 2019-12-11 08:23:05
问题 I have a form that was working for me but i made some amendments and i can figure out why it is now working. I was hoping someone could help. I have changed the SMTP to 0's. My code: <% submitter = request.form("submitter") dotty = request.form("would you like a confirmation email") appno = request.form("application number") cust = request.form("customer name") broker = request.form("broker name") company = request.form("company") introtel = request.form("broker contact number") sdate =

Classic Asp to pull data from database

不羁的心 提交于 2019-12-11 08:08:54
问题 I'm having a problem getting data from my database using asp script, after running the codes below I'm just having a blank page. could anyone please help with this? <% Response.Buffer = True %> <% Response.Expires = 0%> <!--#include file="dsn.inc"--> <html> <head> <meta http-equiv="Content-Language" content="en-us"> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <meta name="GENERATOR" content="Microsoft FrontPage 6.0"> <meta name="ProgId" content="FrontPage.Editor

If text string contains certain words, wrap those words in a span tag

爷,独闯天下 提交于 2019-12-11 08:06:45
问题 Looking for a little help here. I have a text string like: > ...And The World Laughs With You (feat Thom Yorke) With vbscript , if the text string has "(feat " in it, I want to wrap the whole bracketed text in a span tag. So, the example above would look like: > ...And The World Laughs With You <span>(feat Thom Yorke)</span> Hope this makes sense and thank you in advance for the help! Cheers, Drew 回答1: Try with this logic. dim str str = "And The World Laughs With You (feat Thom Yorke)" If

ADODB.Recordset error '800a0bb9'

£可爱£侵袭症+ 提交于 2019-12-11 08:02:43
问题 ADODB.Recordset error '800a0bb9' Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another. /down_see.asp, line 21 my code here: Sorgu="Select * From tblNews" Rs.Open Sorgu,bag,1 rs.Close Set rs=Nothing Set rs1 = Server.CreateObject("ADODB.Recordset") SQL = "Select * From tblnews"" rs1.Open SQL,conn,1,3 rs1("hit")=rs1("hit")+1 rs1.update what wrong ? 回答1: rs("hit") is a string and not a number. Cast it as a number. Integer will do probably. hit= Cint

Combine Two Strings and Order them by Date/Time

我怕爱的太早我们不能终老 提交于 2019-12-11 08:00:22
问题 I wanted to see if it is possible to combine two strings and order them by Date/Time? dim strcountstf dim strDateNTimes dim strCOMBO strcountstf = "02/01/2012 3:05am###,02/02/2012 7:05am###,02/05/2012 8:30pm###" strDateNTimes = "02/01/2012 2:20am###,02/02/2012 8:00am###,02/06/2012 6:45pm###" strCOMBO = strcountstf & strDateNTimes Now strCOMBO will give me both of the strings together but I need them to be sorted by date/time, maybe using the CDate function? Thanks again everyone I really

Windows Server 2008, IIS7.5 and connection to MS Access 97 database

时光怂恿深爱的人放手 提交于 2019-12-11 07:56:01
问题 I know, the topic sounds terrible. But I actually have to connect these technologies. Problem I am currently migrating company's intranet (written mostly in classic ASP) from Windows Server 2003 32 bit with IIS 6 to Windows Server 2008 R2 64 bit with IIS 7.5. Everything works perfectly fine except for one subpage which uses set conn = server.createobject("adodb.connection") to connect to connstring="DRIVER={Microsoft Access Driver (*.mdb)}; DBQ=path\to\mdb\which\is\really\there" . I open

Monitoring ASP/COM+ application performance in Windows 2003/IIS 6.0

混江龙づ霸主 提交于 2019-12-11 07:49:39
问题 We are running a website using Active Server Pages & COM+ components . The ASP pages call COM+ components which in turn communicates with external systems and respond to ASP page requests. We find that the application becomes slow over a period of time and requires restarts (like in couple of days). The website runs on good hardware and does not have huge traffic and so we believe it's not a capacity issue. The application was written in ASP 3.0, VB 6.0 (COM) by an external vendor who does

global.asa where does it belong?

自作多情 提交于 2019-12-11 07:47:04
问题 I'm moving some ASP code from one server to another. The location names are slightly different and I suspect that now the "global.asa" isn't getting called properly. The location is in c:\Inetpub\wwwroot\myApp. 回答1: Make sure that "myApp" in IIS is defined as an application. I would also check the .Net application mappings to make sure .Net is handling your requests. 回答2: It belongs in the root folder of your application. Also make sure that that folder is a application in the IIS manager.