asp-classic

formatting numbers as text in excel

流过昼夜 提交于 2019-12-11 15:40:42
问题 Building an excel spreadsheet is a classic asp application. The problem now is that one of the columns is being automatically formatted by excel as a number when it should really be text and so it is removing leading zeros which the boss wants to keep. I have done some web search and you should be able to pre-append an apostrophe to the string forcing excel to display it as text: If isNumeric(val) Then response.write "'" & val Else response.write val End If Great, but excel is now displaying

Saving javascript variable in server side variable (vbscript)

限于喜欢 提交于 2019-12-11 15:35:53
问题 I know you cant save javascript variables into server side variables (vbscript) directly, but is there a way around this like saving java script variables into html hidden inputs then using javascript to post. Is this possible? If not what else can i do? Below is my code so far get the value of a drop down list - javascript function selectedDatabase() { select_temp = form1.elements["selection"]; select_index = select_temp.selectedIndex; select_text = select_temp.options[select_index].text; }

vbscript tries to read RSS feeds have issue of System does not support the specified encoding

六眼飞鱼酱① 提交于 2019-12-11 14:35:29
问题 I am trying to use a client's URL to shows feeds on our site. The problem that I am having is that it appears that their application was written in java, and the encoding of the XML response is ISO8859_1, an encoding which is not supported by the MSXML active x object. Please see this link for reference: http://support.microsoft.com/default.aspx?scid=kb;EN-US;q304625. The problem is, I highly doubt that I will be able to change, or even request to change the encoding of the response xml. Is

Specific issue regarding MathJax, then (auto?) save to word or pdf

做~自己de王妃 提交于 2019-12-11 14:25:11
问题 Look, this might be a dupe question, and apologies if it is... but honestly, everything I've found on the subject seems to be from 2007, or calls out special caveats for IE6 and the like. The setup: Web page using math markup and MathJax to render the math in the web page (working fine). The user(s) need to be able to export this to some sort of doc - word, PDF, etc - for distribution to proof-readers who are not permitted/desired to be "in the system" where the pages are served. The issue:

Create Virtual Directory IIS7 to be use in GetFolder in Server.CreateObject(“Scripting.FileSystemObject”)

☆樱花仙子☆ 提交于 2019-12-11 14:23:23
问题 I am trying to create a virtual directory at my IIS7 and then use the virtual directory in the following code sPath = "\CMapped\database\attendanceData\" sDir = Server.MapPath(".") & sPath response.write sDir Set fso = Server.CreateObject("Scripting.FileSystemObject") Set obj_FolderBase = fso.GetFolder(sDir) response.end But I got the following error: What I have done is as follow: I created the virtual directory and set the path to C:\ Drive. My localhost is at D:\ drive. I have also set

IIS 7.5 no static or dynamic compression

随声附和 提交于 2019-12-11 14:15:47
问题 I can't get static or dynamic compression to work on a new server for .ASP, .JS or .CSS files. I'm running Windows Server 2008 R2 Standard 64 bit. Under IIS Role Services, I have ASP installed, as well as static and dynamic compression. I'm using DefaultAppPool with the standard ApplicationPoolIdentity. I've enabled all the compression options for the site. Here's the relevant section of my applicationHost.config (this is all under system.webServer): <httpCompression directory="%SystemDrive%

Complete failure when reaching request.form

纵然是瞬间 提交于 2019-12-11 14:12:58
问题 I have a super serious issue which has completely stumped me. I was playing with the IIS value in 'Maximum allowed content length' which can be seen in (IIS 7.0 on windows 7) IIS > Request filtering > right click white space > Edit feature settings. I set this to 30 billion to experiment with uploading large files then restarted IIS. Now ALL my systems work until a form is submitted. The moment the submit button is clicked the destination page loads with this error: Request object error 'ASP

HTTP Status 443 on Server.CreateObject in VBScript under Classic ASP IIS 6.0

岁酱吖の 提交于 2019-12-11 13:56:47
问题 This is old legacy code that has been running at least 5 years. The DLL happens to relate to Paypal's PayFlowPro merchant processing service, but I think this is a Windows scenario causing the issue. Suddenly, based on the code below, I'm seeing this error in the browser: > Error with new credit card processing software, please call Neal at xxx-xxx-xxxx > Error Ref102: client = Server.CreateObject returned Null > (Detailed error: Object doesn't support this property or method) > (Detailed

Having trouble redirecting old PHP URL to the new ASP page

ⅰ亾dé卋堺 提交于 2019-12-11 13:49:55
问题 I am not an ASP programmer. People still use a link from a time when this system was built on PHP. Old url : www.domain.com/shop/more.php New url : www.domain.com/shop/more.asp It now runs on a Windows server that doesn't have PHP installed. If I create the old PHP file then the user is asked to download the .php file when visiting. My research has taken me to learn that I can fix this by editing the web.config file (in either the root or the folder of the page) but all my changes have either

How can I get the XML nodes from this XML in classic ASP (MSXML)?

穿精又带淫゛_ 提交于 2019-12-11 13:47:14
问题 OK, I'm at my wits end. This seems like it should be a completely trivial thing to do, yet after an hour I still just cannot make it work. I'm trying to get a list of time zones from the Campaign Monitor API; unfortunately the page I need to do this in is written in classic ASP/Javascript so I can't just use the API wrapper. I'm making the request like this: var request = Server.CreateObject("Msxml2.ServerXMLHTTP"); request.open("GET", apiurl + "/User.GetTimezones?ApiKey=" + apikey, false);