asp-classic

Oracle adds NULL Byte (ASCII: 0) to varchar2 string

大兔子大兔子 提交于 2019-12-13 05:43:47
问题 I've run into an odd problem with a legacy ASP application that uses Oracle 9i as its database. We recently had the DBA increase the size of a VARCHAR2 field from VARCHAR2(2000) to VARCHAR2(4000). The problem is that a NULL byte (ASCII: 0) is inserted into the 2001 character position in the string even if the string inserted is larger than 2000 characters. For example, if the application inserts a new record into the table with a string of 2500 characters, then 2501 characters are stored in

Web page style is garbled until clicking refresh in firefox?

丶灬走出姿态 提交于 2019-12-13 05:36:40
问题 I have a page that when it loads in firefox 8.0 some users report the layout is all distorted. Clicking refresh fixes the issue. I can't figure out how to test this since it displays just fine on my machine. No reported Javascript errors, and again, it works fine after pressing F5 Edit: You may view this page http://www.sc-pa.com/content/search_real_property.asp 回答1: As others have said in the comments, it is a caching issue, some users are using your site with an old version of your css.

Redirection Not Working Classic Asp Site

拟墨画扇 提交于 2019-12-13 05:25:45
问题 A site i host is currently under construction so i am trying to redirect all pages back to the homepage. I am using the following code for redirection: Response.Status = "302 Moved Temporary" Response.AddHeader "Location", "http://www.soundczar.com" Response.End() However, the only browser that is able to redirect properly is Opera. Firefox, IE, and Chrome are unable to redirect the pages. I had the same issue last week with another classic asp site. I placed this code at the end of the

Using Custom Error Message in Classic ASP when Database connection is down

房东的猫 提交于 2019-12-13 05:10:54
问题 We have a site that is running IIS 6 and ASP classic. We connect to an Oracle database to gather information to display on this web-page. When the database is down the end-users see a typical asp error message about being unable to connect to the database. I would like to display a custom error message that would read something like "The database is currently unavailable at this time". Can anyone provide the syntax in ASP using an oracle connection string to accomplish this? Thanks. 回答1: This

how to run server side exe file from classic asp for non IE browser

霸气de小男生 提交于 2019-12-13 05:05:37
问题 can any body tell me how to run server side exe with parameters from classic asp(vbscript) with non Internet Explorer browser (chrome and firefox) 回答1: Your browser doesn't have anything to do with that, as this is server-side. On the server , you could try this : <% Set WshShell = Server.CreateObject("WScript.Shell") WshShell.Run "c:\windows\notepad.exe" Set WshShell= nothing %> It rings a bell to me, but I haven't used classic asp for years so it would need to be cheked. 来源: https:/

Asp Access db: Microsoft JET Database Engine error '80004005' Unspecified error

柔情痞子 提交于 2019-12-13 04:52:16
问题 Server is dedicated and I have remote access. We have custom ASP CMS with Access database and we use custom error pages for "mod rewrite". It works great. This website is available in 6 different languages and each language has its own domain and they all connect to the same database. Problem is, I get this error every few hours: Microsoft JET Database Engine error '80004005' Unspecified error After I get this error I have to restart IIS or edit "Error pages settings" to detailed error and

Conditional Statement that check the TABLE ID - ASP XML DOM

谁说胖子不能爱 提交于 2019-12-13 04:46:40
问题 I have an HTML stored on the variable called textResponse coming from the other website and I also have a simple ASP-XML DOM code that check and output the table through className. Here is the HTML structure <html> <head></head> <body> <table id="mytable" class="results"> <tr> <td>Some Data</td> </tr> </table> </body> </html> and here is the ASP and XMLDOM code that check and output the TABLE through class attribute Dim HTMLDoc, XML Dim URL, table Set HTMLDoc = CreateObject("HTMLFile") Set

ASP - Biometric Authentication

前提是你 提交于 2019-12-13 04:46:08
问题 Cheers, We started implementing biometrics authentication in our web system and came to a doubt. We're going to use a third-party solution for performing it which is going to be called via a web service. There are going to be four kinds of authentication: Regular one: username/password Challenge Fingerprint Cellphone All users will be authenticated using 1 . Optionally, some of them may also require 2 , 3 or 4 . What would be a good way of verifying which authentication type is required for a

Clarification on what can be exported to excel on ipad

懵懂的女人 提交于 2019-12-13 04:45:45
问题 Trying to fix an old .asp site to work on an ipad. One of the features is the users ability to download their search results into an excel worksheet. The code uses: Response.ContentType = "application/vnd.ms-excel" Response.AddHeader "Content-Disposition", "attachment;filename=results.xls" Response.CharSet = "iso-8859-1" When viewing the site on the ipad, when the link is click for the page with the code above it does nothing, just spins. Is it the fact that I am trying to export the data as

Determine DateLastModified for a web base JPG Image via ASP or ASPNet

一曲冷凌霜 提交于 2019-12-13 04:41:22
问题 Using VBS in an ASP page or ASPNet page, I would like to determine the date when a remote web-based JPG file was created (or modified, etc). For example a webcam shot which was FTP-ed to the website. Thus, with the URL of the JPG, how can I get to the properties of that JPG. In the code below I tried to retrieve the image file and save it into my site web, but I get an error on the " objADOStream.SaveToFile (strSave,2) " line which says that "System.Runtime.InteropServices.COMException: Write