asp-classic

how to get the content of a value posted as the body in asp classic?

I've seen a couple of rest examples where the xml message gets posted in the body of the http request, and not in a named parameter... in classic asp I have the request.form object that allows me to get the posted values, but I have to specify the name of the parameter... is there some way to get the whole content of the post? I would...

How do I extract HTML img sources with a regular expression?

I need to extract the src element from all image tags in an HTML document. So, the input is an HTML page and the output would be a list of URL's pointing to images: ex... http://www.google.com/intl/en_ALL/images/logo.gif The following is what I came up with so far: <img\s+src=""(http://.*?) This does not work for tags where the src ...

Modal popup in Classic ASP?

I write in .NEt and in classic ASP. I want to create a modal popup in asp. I like in .NET how the parent page can be disabled and turned a different color. Is this possible in ASP? Or is there no easy solution to get this done? If possible...how? ...

The connection to the server was reset while the page was loading

Whenever I upload a huge file to the server (10MB). I get the following error on FireFox: The connection to the server was reset while the page was loading I am using Classic ASP on a Windows 2003 machine running IIS6. Does anyone know why this is happening, and what a work around is? ...

Javascript Not Populating Dropdown in Webbrowser Control C#

Hi, there is this classic asp site that is using javascript to populate dropdowns or whatever they called it back then. Well, if I goto this site from the regular browser after a second it fills the dropdown with the data. But in the webbrowser control no such luck almost like Javascript is disabled. For those interested in the sites s...

Intermittent ADO Recordset object error in Classic ASP script

I'm very infrequently seeing the following error logged on a website I manage: Arguments are of the wrong type, are out of acceptable range, or are in conflict with one another When I access the classic ASP page myself, I cannot duplicate the problem. Notably, the user agent is nearly always: ia_archiver (+http://www.alexa....

Finding connection strings in code programatically

Seems like a fairly straightforward problem. I want to look through about 6gb of content and classic asp code and find anything that looks like a connection string. Problem is, the connection strings are formatted in a dozen different ways. I was thinking of using a regex to look for specific properties like "catalog=" or "password=" ...

Whats the best way to audit changes on a particular form field??

I need to add an entry into a database everytime a field changes in a form indicating the old value and the new value. How would you go about this?? Would you... Add a hidden field for every field and compare it to the new value on submit then add an audit entry if neccessary?? Do a select of the data to be inserted on post then comp...

What is the function of the "With" keyword

Given the code below, what does the "with" keyword do? I'm not very familiar with it, and I'm not sure of its purpose. Sub NotePage_Load() With Request.Form Thanks Kevin ...

Is it possible to remove some post data with an HttpModule?

I'm converting an old classic asp website to asp.net. The application is basically an extension of a tool set for a given set of users but it is hosted at an external vendor. To perform a seamless transfer to this application it POSTS some xml data which is firing off the "potentially dangerous Request.Form value". I know I could tur...

how can I specify a proxy configuration using Microsoft.XMLHTTP?

I'm using Microsoft.XMLHTTP from a classic asp page to post info to another site... I'd like to be able to inspect what's going on with fiddler, and to do so I have to find a way to configure Microsoft.XMLHTTP to use a proxy... is it possible? where does Microsoft.XMLHTTP gets its configuration from? thanks a lot ...

Is a code only ASP.NET Header and Footer possible?

I have a global header and footer that has a Database connection and a disconnection in the header and footer and need to convert this to ASP.NET - this needs to be done before any HTML is output and after any HTML is output for the footer. I cannot seem to find any easy way to do this, like in Classic ASP - if possible post an example o...

Go to specific line number on a page using # but not in url

I have a record set with hundreds of rows. when a user clicks the row they go somewhere else and later get redirected to the page with the rows again. I want the page to start on the exact row the clicked on. I have rows set up with a line number corresponding to each record number from the database. //some record set while not RS.eo...

make an http post from server using user credentials - integrated security

I'm trying to make a post, from an asp classic server side page, using the user credentials... I'm using msxml2.ServerXMLHTTP to programatically make the post I've tried with several configurations in the IIS 5.1 site, but there's no way I can make IIS run with a specified account... I made a little asp page that runs whoami to verify...

copying session values to input fields

I dont understand why the following code is not working. I save some inputs values to sessions. In the next page, I want users be able to copy these values to input fields. $(function() { $("input#copyshipping").click(function(){ if ($("input#copyshipping").is(':checked')) { // Checked, copy values ...

How to setup MVC routes to handle old ASP classic pages redirects

I'm migrating a ASP classic site to ASP.net MVC. Is there a way to redirect the old traffic to the new one? Example: how to go from: www.mydomain.com/viewpage.asp?pageid=1234 to: www.mydomain.com/page/1234 ...

Other way to Debug ASP Classic (VBScript) aside from Attaching Process using Visual Studio

Is there any other means to debug an ASP Classic application using Visual Studio? Right now, I have a classic ASP application and I use the IIS 5 of WinXP. I debug the ASP application right now by attaching the DLLHOST.EXE from (Debug > Attach Process) in Visual Studio 2005. This works fine except sometimes when debugging like this the...

Cookie.HTTPOnly in classic ASP

How to set all the cookie variables in a page to HTTPOnly in ASP? ...

how to count records in ASP classic?

Hi guys, I'm not quite familiar with programming ASP classic. I just need a small code to run on my webpage. How do i count the record of the returned query? <% Set rsscroll = Server.CreateObject("ADODB.Recordset") Dim strSQLscroll, rsscroll strSQLscroll = "SELECT * FROM tblItems where expiration_date > getdate() order by expiration_da...

I can no longer debug classic asp code with visual studio 2008

I've finally found a way to debug classic asp code in visual studio 2008 ... but... http://stackoverflow.com/questions/958968/has-anybody-been-able-to-debug-asp-classic-code-with-visual-studio-2005-or-later ... but ... it only lasted a few days... I'm following these steps http://www.codeproject.com/KB/debug/DebugVBScriptVS2008.aspx...