asp-classic

Data source name not found and no default driver specified

做~自己de王妃 提交于 2019-12-29 09:28:06
问题 I am getting this error when I try to insert record in db. Microsoft OLE DB Provider for ODBC Drivers error '80004005' [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified my connection is : Application("Db_ConnectionString")= "DSN=dsnname;UID=xxx;PWD=xxx;" please help me asap. thanks in advance. 回答1: thanks for your answers. I myself fixed the error. Assigned wrong dsn name in my code. I changed it and now its working fine 回答2: I got this error on

display detailed error message on IIS 7.5

那年仲夏 提交于 2019-12-29 09:10:10
问题 I'm trying to display detailed error message on a page using web.config on my remote server on hostgator running IIS 7.5. I've tried almost everything but can't get it to work. <configuration> <system.webServer> <httpErrors errorMode="Detailed" existingResponse="PassThrough" /> </system.webServer> </configuration> When i preview the page i get this error. An error occurred on the server when processing the URL. Please contact the system administrator. If you are the system administrator

ASP classic CDO Email messaging use UTF-8 in textbody

不羁岁月 提交于 2019-12-29 08:37:06
问题 How can i send email by using UTF-8 charset. Kindly note that I need to use it in textbody and not in htmlbody. Everythings working fine if I uses it in htmlbody but when I tried to used textbody. I got aschii code character objCDOMailer.TextBody = "test - Rozwiązanie" >> having a problem objCDOMailer.HTMLBody = "test - Rozwiązanie" >> dont have a problem I used the code below for both above. objMail.BodyPartCharset = "UTF-8" 回答1: use bjCDOMailer.TextBodyPart.Charset = "utf-8" for charcter

SOAP API HTTPS - Connecting with Classic ASP

情到浓时终转凉″ 提交于 2019-12-29 08:18:45
问题 I know there are plenty of discussions relating to connecting a classic ASP client to a SOAP web service, but I'm interesting in connecting to a HTTPS enabled SOAP service. We have an existing SOAP Web service written in WCF and it works great...for .NET clients. We've had a request from a new customer, "We use classic ASP - how do we connect to your Web Service API?" I didn't have a clue where to start, and it started to dawn on me that I had no idea what the structure of the actual SOAP

Make server automatic run asp-script every day

倾然丶 夕夏残阳落幕 提交于 2019-12-29 08:02:45
问题 Is it possible to create a batch-file which opens firefox, runs a website and then closes firefox again? Something like: @echo off start firefox http://..... This is where I am stuck... It needs to close firefix again when the website is finished loading. It is used to run a maintenance-script every night at 23:59. The script is based locally, but one cannot run a asp-file without using a server, so I have placed it as a website. 回答1: Adapted from an article I wrote on aspfaq.com years ago.

Make server automatic run asp-script every day

北城余情 提交于 2019-12-29 08:01:13
问题 Is it possible to create a batch-file which opens firefox, runs a website and then closes firefox again? Something like: @echo off start firefox http://..... This is where I am stuck... It needs to close firefix again when the website is finished loading. It is used to run a maintenance-script every night at 23:59. The script is based locally, but one cannot run a asp-file without using a server, so I have placed it as a website. 回答1: Adapted from an article I wrote on aspfaq.com years ago.

Display MessageBox in ASP

本秂侑毒 提交于 2019-12-29 06:50:12
问题 I am new to code and starting with ASP. How do I create a simple message box so I can alert the users on the web page? 回答1: Here is one way of doing it: <% Dim message message = "This is my message" Response.Write("<script language=VBScript>MsgBox """ + message + """</script>") %> 回答2: <% response.write("<script language=""javascript"">alert('Hello!');</script>") %> 回答3: <!DOCTYPE html> <html> <body> <button onclick="myFunction()">Try it</button> <script> function myFunction() { alert("Hello!

What is required for an IIS site to send error details to the browser?

痞子三分冷 提交于 2019-12-29 05:22:28
问题 I am receiving a Server Error on an ASP Classic site running on IIS 7.5. I have "Send Errors To Browser" set to True , however I still receive the following error screen: 回答1: IIS is hijacking your classic ASP app's response. In your web.config file ensure that the following is configured: <configuration> <system.webServer> <httpErrors existingResponse="PassThrough"/> </system.webServer> </configuration> Also make sure that you've enabled "Send Errors To Browser" in the ASP configuration

HTTP Authentication (Basic or Digest) in ASP Classic via IIS [closed]

江枫思渺然 提交于 2019-12-29 04:54:11
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I want to develop a website in ASP classic that uses HTTP Authentication against a database or password list that is under the control of the script. Ideally, the solution should involve no components or IIS settings as the script should be runnable in a hosted environment. Any clues/code deeply appreciated. 回答1

IIS Express and Classic ASP

ⅰ亾dé卋堺 提交于 2019-12-29 03:38:06
问题 I'm trying to get a classic ASP site set up on IIS Express under Windows XP. I am able to get iis setup and running as well as setting up the site, but when I try to browse to an asp page all I get is: íP÷Pèö‚le”_/index.asp18 Has anyone come across this problem with IISExpress? I'm thinking it's a permissions thing, but I'm not sure what I need to set and for which user. Any help is appreciated, Thanks. 回答1: OK we've had this and this is how I've found a solution.. In our case I think it was