asp-classic

URL Shortener Spam

核能气质少年 提交于 2019-12-22 00:34:54
问题 Lately I'm starting to receive spam URLs into my forum software via URL shortener. In the past, they are easy to block by domain, but I can't exactly block the domain for URL shortener since I'm seeing some valid usage as well. Any best practice on how to manage these spam URLs (and spammers that are using it)? 回答1: You could also do something like http://www.untiny.me/ when a post is submitted. Basically, send an HTTP request and capture the "HTTP 301" response. You can then examine the URL

MySQL ODBC 5.1 Set Names not allowed by driver

倖福魔咒の 提交于 2019-12-21 23:19:11
问题 I've a windows 2008 server and an asp website. I moved site to my server from a windows 2003 server and it was working good. It uses mysql as database and Set Names 'Latin5' was it's odbc driver initial statement. I tried to set same initial statement and I got "Set Names not allowed by driver" error message and db update/insert queries gives error. The site is in Turkish language. Thanks for the help.. 回答1: SET NAMES has been removed in MyODBC version 5.1. http://dev.mysql.com/doc/refman/5.1

Classic ASP #include virtual not working

大城市里の小女人 提交于 2019-12-21 20:58:32
问题 We're in the middle of a migration from IIS6/2003 to IIS8/2012. We have to maintain some Classic ASP and ASP and .NET apps. The full applications seem to work fine (as in, the ones I went in to IIS, right clicked on the folders and did "Convert to Application"), but our site relies heavily on menus that are included html files. The weird thing is, I'm 99% sure this was working before, but when we went to flip the switch for the new server, the menus didn't appear. The file structure looks

generating Excel file error

試著忘記壹切 提交于 2019-12-21 17:54:47
问题 I am using the following code in classic ASP to generate Excel file, the code is simple and it works. I run the code under IIS 7.0 on Windows Vista x86. Two issues, there is a weird warning box, here is the screen snapshot http://i27.tinypic.com/2n81udw.jpg All cells' background is white, no border of each cell shown, here is the screen snapshot, http://i25.tinypic.com/vy5t2d.jpg My code, <%@LANGUAGE="JAVASCRIPT" CODEPAGE="65001"%> <% function writeXlsHttpHeaders(filename){ Response

Classic ASP - get full url name

一笑奈何 提交于 2019-12-21 15:50:01
问题 Im wondering if someone could help me. I have the following URL ( which is dynamic ) www.website.com/images/gal/boxes-pic004.asp How can i extract the 'boxes-pic004' part using classic ASP Thanks 回答1: <% Dim sScriptLocation, sScriptName, iScriptLength, iLastSlash sScriptLocation = Request.ServerVariables("URL") iLastSlash = InStrRev(sScriptLocation, "/") iScriptLength = Len(sScriptLocation) sScriptName = Right(sScriptLocation, iScriptLength - iLastSlash) %> sScriptName will then contain boxes

Classic ASP - get full url name

五迷三道 提交于 2019-12-21 15:49:09
问题 Im wondering if someone could help me. I have the following URL ( which is dynamic ) www.website.com/images/gal/boxes-pic004.asp How can i extract the 'boxes-pic004' part using classic ASP Thanks 回答1: <% Dim sScriptLocation, sScriptName, iScriptLength, iLastSlash sScriptLocation = Request.ServerVariables("URL") iLastSlash = InStrRev(sScriptLocation, "/") iScriptLength = Len(sScriptLocation) sScriptName = Right(sScriptLocation, iScriptLength - iLastSlash) %> sScriptName will then contain boxes

500 Vs 500.100 Error in Classic ASP

折月煮酒 提交于 2019-12-21 12:11:41
问题 When running classic ASP application in IIS7, when would a 500 error happen rather than a 500.100 error? What I mean is that a 500 error occurs but not a 500.100 error. I am under the impression that classic ASP would only throw 500.100 errors when error occurs in it's VBScript code. Some explanation through an example would be very helpful. 回答1: Classic ASP has always returned a 500.100 status if there is a script error. It's been like for a very long time in previous versions of IIS and the

Enable logging for a classic asp site

别来无恙 提交于 2019-12-21 09:39:20
问题 I inherited a classic ASP project and and have deployed it on a IIS 7.5. I am able to access the site, however at certain point I get a generic 500 error page. I want to know what is going on, so I think the best is to see the logs Have found nothing in c:\WINDOWS\system32\LogFiles\ nor c:\inetpub\logs\ Tried to enable logging as here: https://technet.microsoft.com/en-us/library/cc732826(v=ws.10).aspx But I have no Logging icon/button there (see screenshot). Tries custom error 500 page as

Does Visual Studio 2008 support classic ASP development?

假如想象 提交于 2019-12-21 09:20:15
问题 Does visual studio 2008 support classic asp development? It's been years since I created a classic ASP website and I was wondering if I can use my current toolset or if I have to resign myself to notepad. Thanks Matt 回答1: Yes, as others have mentioned, VS 2008 SP1 supports classic ASP. However, if, like me, you find it a bit of a behemoth for the relatively simple classic ASP, give Notepad++ a try - no need to resign yourself to plain old Notepad! 回答2: I know VS 2008 now includes Intellisense

Does Visual Studio 2008 support classic ASP development?

。_饼干妹妹 提交于 2019-12-21 09:20:11
问题 Does visual studio 2008 support classic asp development? It's been years since I created a classic ASP website and I was wondering if I can use my current toolset or if I have to resign myself to notepad. Thanks Matt 回答1: Yes, as others have mentioned, VS 2008 SP1 supports classic ASP. However, if, like me, you find it a bit of a behemoth for the relatively simple classic ASP, give Notepad++ a try - no need to resign yourself to plain old Notepad! 回答2: I know VS 2008 now includes Intellisense