asp-classic

Can ASP.NET MVC routing and a classic ASP homepage (VBScript, not web forms) play together nicely?

Hello, We have a classic VBScript "default.asp" page in the root of our site. (This is a heavy, legacy page and converting it is not an option right now.) We also have a new ASP.NET MVC 2 application we want to host on the same site. Everything actually works great together! Except for one thing: requests to the root of the site (e.g., ...

How can I reduce the size of a cookie value?

I need to know the best way to reduce the size of data to be stored in cookie. ...

How to connect to a third party website in classic asp using javascript for password encryption and yet not giving in the password.

Hi I have to make changes to classic asp website where once a button is clicked it autologins to a third party website with a intermediate page that warns that you are logging in to a third party website. The thirdparty is providing us with a username and password and gave us an examle javascript to encode the password to send to them...

Setting a timeout for ServerXMLHTTP request

Does anyone know how to set up set up a default action for when a ServerXMLHTTP request times out? I'm using setTimeouts() to set the time out options according to the MSDN site. Ideally I would like to initialize the request again from the beginning or refresh the page should it time out. I'm using classic asp and jscript. Here's my...

Dash in date format and get method problem

Hi I have asp (classic) script and within javascript code. From database I get date in format yyyy-mm-dd (2010-10-14) and save in variable. Then, I pass this variable to javascript method: Response.Write("<a href='Javascript: PassDate("&OurDate&","&Val1&","&Val2&");'>Pass</a>") This method code is: function PassDate(OurDate, Val...

Why isn't #include working on .asp page in IIS7.5?

I saw a similar question to this, but mine is slightly different: I'm get intermittent results with #include files working on an IIS 7.5 server (R2008 V2). My includes are only working if they are in the same folder as the current .asp page, or in a subfolder of the current page. This is inconvenient, as I'd like to keep them all in a /...

Does IIS Express supports ASP Classic?

Forgot to install IIS in my last dev machine repav and was thinking that maybe the new IIS Express can fit the bill for running this old ASP classic sites I'm supporting. Do you know if IIS Express supports ASP Classic? ...

get parameter from url and save the parameter in other links on the same page

Hi all, I have a problem and i need some help please. I have this page with a parameter http://www.webxpress.com/landingpage.asp?label=CSU... Now in this page i have 3 buttons with the following links: www.webxpress.com/button1.asp www.webxpress.com/button2.asp www.webxpress.com/button3.asp All i want is to add the parameter in the but...

Converting an HTA into an ASP page?

I was given an HTA that I think was created by the HTA_Helpomatic. They want it converted into a classic ASP page. So I made a few basic changes, and I think I almost have it working. But I'm running into a problem - the ole 'VBScript Object Required' bit. It's doing this on the line Set objlst_groupnames = document.getElementById( "list...

How do I check if the object instance exists in classic ASP?

Using classic ASP, I have something like: class cUser Public function LoadData(p_id) * load from database for the user p_ID * end function end class Now my problem is this: I have a loop to get up to 50 User instances on a single page (fetching form posts lists). I can get user instance by dim User1 Set User1 = new cUser ...

check user login

I want to check a user when they login. I placed following code in an include in the CMS application but it doesn't work on IIS 7.5: Function check_login(str_siteadmin,str_adminnaam) url = "http://www.mydomain.be/test.asp?IP=" & _ Request.ServerVariables("LOCAL_ADDR") & _ "&site=" & Request.ServerVariables("...

posting a form from one HTTPS to another HTTPS site causing security alert

I need to post a string from a .NET site to a Classic ASP site which are hosted on the same server (different virtual directories). https: //example.com/DOTNETSite/Sender.aspx to https: //example.com/ClassicASP/SomeFolder/Target.asp Target.asp page has 3 ways to handle incoming data: Form Post Query String Headers I cant pass my...

How to Create a C# Listener Service for MSMQ as a Windows Service

I'll start by saying I'm not a .NET developer, but have been thrown into a project where I need to use MSMQ so a classic ASP web application can send messages to a C# Windows Service that handles the processing. I have experience integrating other message queues with other languages, but like I mentioned, I don't have much experience wit...

Get id of facebook user from email ASP

How would I get the userid of somebodys facebook from there email address :) Thanks ...

Why is Windows authentication using wrong username?

We have an ASP site using Windows authentication to connect to a SQLServer database. There are three instances of the web site, a Dev environment (located on my Workstation), an UAT environment and a production environment, which are on separate servers. When I access the Dev site (which uses the same DB as the UAT site) I have no issue...

Re-assigning an array in ASP classic

I have the following function, designed to walk through XML and create a linear structure of all nodes: function get_children(n) if n.hasChildNodes() then for each child in n.childNodes set local_array = array_merge(get_children(child), local_array) next else set local_array = Array(n) end if get_children = loc...

C# collection to Classic ASP [updated]

Hi, I am having trouble exposing a C# collection to Classic ASP. I've tried to use IEnumerable and Array. but I get the "object not a collection" error. my method looks like: public IEnumerable<MyObj> GetMyObj() { ... } and on the Classic ASP side: Dim obj, x Set obj = Server.CreateObject("Namespace.class") For Each x in obj.Get...

Array merge in ASP classic

I'm working on an array_merge function for ASP classic. What I have seems to be working, until one (or both) params are empty or not arrays. Here's what I have so far: function array_merge(left, right) dim total_size dim i dim merged ' Convert "left" to an array if not isArray(left) then left = Array(left) end if ' C...

Need to way to grab an XML file from an URL, transform it with XSL, and present it back as a XML file that prompts a save?

Requirements: Raw XML is from external website I have little control via URL (eg. http://example.com/raw.xml) I need to transform it via XSL into another XML file (I already have this XSL file written and it works) I need to write an asp.net or asp file that takes the url, applies the xsl transform, and outputs the resultant xml that p...

Classic ASP app has COM 'middle layer' for light business logic. Is this needed in ASP.NET?

I am trying to estimate how long it will take to migrate a Classic ASP application to .NET and came across hundreds of COM functions written in VB 6. A majority of these functions only do parameter validation and actually calls the SQL server. Is this something that should be replace with an ORM? (Linq, nHibernate, Entity Framework)......