asp-classic

Internal Server Error to send Form

╄→尐↘猪︶ㄣ 提交于 2020-01-06 06:54:26
问题 Please Helpme, i have this error, when I send the contact form : My Visual Basic code: <% mail_to = "jrclurita@gmail.com" Dim error error = 0 For Each f In Request.Form If Request.Form(f) = "" Then error = 1 End If Next If error=1 Then response.redirect "error.html" Else Dim f, emsg, mail_to, r, o, c, other fline = "_______________________________________________________________________"& vbNewLine hline = vbNewLine & "_____________________________________"& vbNewLine emsg = "" For Each f In

Internal Server Error to send Form

大兔子大兔子 提交于 2020-01-06 06:54:20
问题 Please Helpme, i have this error, when I send the contact form : My Visual Basic code: <% mail_to = "jrclurita@gmail.com" Dim error error = 0 For Each f In Request.Form If Request.Form(f) = "" Then error = 1 End If Next If error=1 Then response.redirect "error.html" Else Dim f, emsg, mail_to, r, o, c, other fline = "_______________________________________________________________________"& vbNewLine hline = vbNewLine & "_____________________________________"& vbNewLine emsg = "" For Each f In

How to handle script timeout error in classic ASP?

 ̄綄美尐妖づ 提交于 2020-01-06 06:24:19
问题 In my Classic ASP application I am trying to generate a web report having more than 7K and 14K records respectively, but it shows "Script TimeOut" error after 10 to 15 minutes. The IIS setting is already more than default value.And also I have written the following code in individual page: <% server.scriptimeout=4000 %> Please suggest me how to handle it. 回答1: You simply cannot create an app that has HTTP requests that hang by a thread for 15 minutes. It's just destined for failure no matter

Classic ASP calling Oracle stored procedure with OraOleadb Driver

送分小仙女□ 提交于 2020-01-06 04:53:31
问题 I am facing a very strange problem may be I have missed something. Here is the scenario, we have an ASP application which uses Oracle 11G as backend database. We are calling a store stored procedure which is accepting these parameters. PROCEDURE PR_SUMMARY_IN(theAccountId in varchar2, theAwardId in number, theDueDate in varchar2, theSubmittedDate in varchar2, theReportDescription in varchar2, theFormId in varchar2, theReturnCode out number) AS v_submitted_date date; BEGIN IF theSubmittedDate

ASP recordset fileds are empty at second utilisation

一个人想着一个人 提交于 2020-01-06 03:52:11
问题 Does anyone know why this statement Response.write(rs.Fields.Item("password")&" ; "&rs.Fields.Item("password")) Do this : myPass ; It's very strange and I'm looking for a solution since this morning. It's making me crazy because the result of this is that this codntion : if rs("password") = rs("password") then is False ! EDIT : After other test, i have made an other discover : Response.write(rs.Fields.Item("name")&" ; "&rs.Fields.Item("name")) do : amdin ; admin And if i change "password" by

Classic ASP/ASP.NET Application Variables

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-06 02:51:06
问题 We inherited a website that is ~40GB in size (mostly from user-submitted content) that has a mixture of classic ASP, inline .Net and and compiled .Net associated with it. There are technically two sites associated with this and to conserve disk space I intentionally setup IIS to have two physical sites pointing to the same folder, but with independent application pools to separate the worker processes. The problem we're running into is occasionally when you visit one of the sites it seems to

Emoji data retrieved via ODBC Connection appears as question mark

北城以北 提交于 2020-01-06 02:38:23
问题 I connect to MySQL version 5.5.50-log from classic ASP pages. The MySQL Database is set up as follows: Database charset: utf8mb4 Database collation: utf8mb4_general_ci The table and field: Character Set: utf8mb4 Collation: utf8mb4_general_ci To test, I have data in the table, which contains this string: 🍔(T_T) é, è, à, ç This is a screenshot of the data from the SQLyog: This is my test web page: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible"

Open “Save As” Dialog Box To Download Image

纵饮孤独 提交于 2020-01-06 01:56:11
问题 I've been checking all over the place for an answer to this one but no luck. I want a button or link that will open the "Save As" dialog box. Simple? I know I can open the image in a new window/tab (as I'm doing now) and then use the right-click, save as method but as the people using this are not the sharpest knives in the box, so I want to make the download as simple as possible. The code at the moment is: <button class="downloadButton" type="submit" onClick="window.open('<%=(rsContent

MS SQL Backslash preceding new line/line feed removes line break

心已入冬 提交于 2020-01-05 23:15:09
问题 I'm working in classical ASP and am trying to simply insert some user input into my MS SQL 2008 database. This is something I do basically every day, but I don't think I've ever experienced this bug before. The bug I am getting is that, if a user ends a line of text in backslash, and starts a new line below, both the backslash and line break are lost after the data is stored in the DB. If i try the following statement, hardcoded from an ASP file: UPDATE TBLarticle_text SET Introduction =

Can I write ASP code in a .js file?

天大地大妈咪最大 提交于 2020-01-05 09:35:29
问题 Can I write ASP code in a .js file. Or if there is any way through which I can update database in a .js file. 回答1: Technically, yes. You need to add the js extension to IIS and the web.config file: <system.web> <httpHandlers> <add verb="*" path="*.js" type="System.Web.UI.PageHandlerFactory"/> </httpHandlers> The other option (which I recommend) is request an .asp file, like this: <script type="text/javascript" src="yourASPfile.asp"></script> And yourASPfile.asp would send a javascript header: