asp-classic

Commenting code in ASP Classic

十年热恋 提交于 2021-02-08 12:18:57
问题 The way I know of hashing out code within ASP Classic is <%-- --%> . Would this be correct? Or is there another way? 回答1: Use a single quote, like: ' This is comment ASP Classic uses the VBScript/Visual Basic language, and a single quote is commenting in that; <%-- is nothing (I am not 100% sure though). 回答2: Beside ' , you can comment lines in the old school way: REM Response.Write "Ignore this line" Which is same with ' Response.Write "Ignore this line" 回答3: Assuming you mean that you have

Commenting code in ASP Classic

守給你的承諾、 提交于 2021-02-08 12:18:23
问题 The way I know of hashing out code within ASP Classic is <%-- --%> . Would this be correct? Or is there another way? 回答1: Use a single quote, like: ' This is comment ASP Classic uses the VBScript/Visual Basic language, and a single quote is commenting in that; <%-- is nothing (I am not 100% sure though). 回答2: Beside ' , you can comment lines in the old school way: REM Response.Write "Ignore this line" Which is same with ' Response.Write "Ignore this line" 回答3: Assuming you mean that you have

how do i make a vbscript data type subtype LONG to get it to be 2,147,483,647?

我怕爱的太早我们不能终老 提交于 2021-02-08 06:21:54
问题 I have a web page that displays 10 images at a time from a directory. In the directory I have now 55,000 images. Once zz below hits 32,767 it stops. How do I make ZZ into a subtype LONG to get it to be 2,147,483,647 (the code below is not accurate, just quickly done to show you the loop I am achieving) pp = Request("pp") ' pp could be at 40000 filecount = 0 dim zz For Each file in filecoll zz = zz + 1 If ZZ > PP then response.write 'show image here end if Next 回答1: The actual problem got

CDO email messaging subject special character error

五迷三道 提交于 2021-02-07 18:34:39
问题 I am having trouble with special characters in the subject of emails that are sent through the website. For instance, Turkish characters show as; yurtdışına çıkış kapısı için e-posta adresinizi onaylayın . I had the same problem with the body but I managed to solve it by building a function. But I cannot use it with the subject since it isnt an HTML. What can I do to solve this problem? lngSignupTitle = "*strWebsiteTitle* için e-posta adresinizi onaylayın" lngSignupBody = "<

Boolean values in local language

霸气de小男生 提交于 2021-02-07 12:40:42
问题 This question has been asked long time ago on serverfault but no working awnser. I'm hoping somebody has encountered it and found a solution since then. Example: <% Response.Write True Response.Write "<hr>" Response.Write "test:" & True %> Output: True -------------- test:Waar As you can see, as soon as you combine the output, its turned into a local string ('Waar' is dutch for true). I need it to stay "True". How can I change this? I dont mind putting some code at the beginning of the pages,

Having classic ASP read in a key from appsettings in a web.config file

别说谁变了你拦得住时间么 提交于 2021-02-07 08:46:14
问题 OK so here's the situation. I've got a classic ASP website running inside an MVC 4 application. I need the classic ASP website to be able to get a key from the appsettings section of the web.config file. Here is the function I've got: ' Imports a site string from an xml file (usually web.config) Function ImportMySite(webConfig, attrName, reformatMSN) Dim oXML, oNode, oChild, oAttr, dsn Set oXML=Server.CreateObject("Microsoft.XMLDOM") oXML.Async = "false" oXML.Load(Server.MapPath(webConfig))

Having classic ASP read in a key from appsettings in a web.config file

丶灬走出姿态 提交于 2021-02-07 08:44:46
问题 OK so here's the situation. I've got a classic ASP website running inside an MVC 4 application. I need the classic ASP website to be able to get a key from the appsettings section of the web.config file. Here is the function I've got: ' Imports a site string from an xml file (usually web.config) Function ImportMySite(webConfig, attrName, reformatMSN) Dim oXML, oNode, oChild, oAttr, dsn Set oXML=Server.CreateObject("Microsoft.XMLDOM") oXML.Async = "false" oXML.Load(Server.MapPath(webConfig))

Having classic ASP read in a key from appsettings in a web.config file

拜拜、爱过 提交于 2021-02-07 08:42:06
问题 OK so here's the situation. I've got a classic ASP website running inside an MVC 4 application. I need the classic ASP website to be able to get a key from the appsettings section of the web.config file. Here is the function I've got: ' Imports a site string from an xml file (usually web.config) Function ImportMySite(webConfig, attrName, reformatMSN) Dim oXML, oNode, oChild, oAttr, dsn Set oXML=Server.CreateObject("Microsoft.XMLDOM") oXML.Async = "false" oXML.Load(Server.MapPath(webConfig))

Encrypted code in an ASP file

泪湿孤枕 提交于 2021-02-04 19:40:09
问题 I am working on code that was originally written by a vendor that has gone out of business. It is a classic ASP site and a lot of the server side code looks like the following. I'm wondering if there is a way to decrypt/unscramble it. <%#@~^EgAAAA==@#@&P~,PxN,k6@#@&1AIAAA==^#~@%> 回答1: Do your files begin with <%@ LANGUAGE = VBScript.Encode %> I've inherited files like that before and I decoded them with this http://virtualconspiracy.com/content/scrdec/usage 回答2: UUDECODE & UUENCODE are you

IIS 6 - Classic ASP - Set *.asp response header's content-type to “text/html;charset=UTF-8”

半世苍凉 提交于 2021-02-04 17:40:53
问题 How do I can set *.asp files (Classic ASP) in a Web Site under IIS to have Response Header's Content-Type set to text/html;charset=UTF-8 ? Right now, the files are served as Content-Type=text/html . An alternate approach is to add <% Response.Charset = "UTF-8" %> to every single page, but I wonder if there's a way to do it globally. Thanks! -K 回答1: There is no means to globally specify the CharSet for an application. There is actually more to it than just telling the client its getting UTF-8.