asp-classic

Can you Render an ASP.Net control in a Non ASP.Net page via AJAX

We have an old page written in Classic ASP that makes calls to an existing .asp page through the Prototype library's Updater object. This call passed some query string parameters in w/ the request and received a list of params to update as well as a block of HTML/JS to render onto the main asp page. It seems that the page lifecycle c...

How to add or replace a query string parameter in classic ASP?

I have a set of links in header.asp which is included on every page; these links have their href attribute set to whatever the current page is plus a linkID param. Sometimes the page the link references will have query string params, but other times it won't. If the current page URL contains the linkID param already I need to replace it,...

Trying to capture a SOAP request in Classic ASP

I am a classic ASP developer. I know, I should learn .NET, but only have a couple more years left at this. I would consider myself advanced. I have a third party application that will export data to a web service if I develop it. I am curious to see I can build it in ASP rather than having to learn .NET. My problem is I haven't figured...

Close window without user confirmation in classic asp

I need to close a window without user confimation box or a message box prompting "the webpage you are viewing is trying to close the window. Do you want to close this window? (yes/no)". Please help.. ...

Selecting items IN a row

Hi there, I'm developing a website for Tenants to find properties. When they sign up, they can choose the property types that they are interested, for example: Apartment or House. When a Tenant logs into their account, they can then do a search for properties. The search form is prepopulated with the values that they originally entered...

How to send email from ASP application on Windows 2008 Server

My ASP, classic ASP application is giving me a sever error on a Windows 2008 Server. It works fine on Windows 2003 server. The error is a 500 internal server error. Does CDO not work on Windows 2008? EDIT THe error is: The transport failed to connect to the server. Here is my mail function: function SendMail(mailFrom, mailTo, mailSub...

In Classic ASP, how do I insert a character into a string at a specified index?

So I have an array of indexes of characters in a string that I wish to insert a character before, how do i easily insert a character before each index? So for example: "The big brown fox ... " the positions array = 4,9 the character to insert ',' the result: "The, big, brown fox ..." Is there a method that provides such an easy util...

Response.redirect in vbscript

Can you tell me a vbscript for doing an action just like response.redirect command doing in asp.net.I need to got to one page from another page ...

Unit Testing for VBScript, ASP Code and SQL Server 2000

I have a very old project implemented in (classic) ASP and SQL Server 2000. Because of quality concerns, I've been considering the possibility of implementing some form of automated quality testing. Though, the web pages are ASP the project is really 85% SQL Server stored procedure, functions, views and DTS. (Lots of dependency on DTS) ...

something wrong with xml

I dont understand why it does not display blog entries as <rss version="2.0"> <channel> <title></title> <item> <title>Title to story 1</title> <description>Fusce ornare. Pellentesque convallis, lorem vel imperdiet </description> </item> − </channel> </rss> Going mad here, any advise appreciated!! http://www.pangeaadvisors.org/sep...

Form Repopulation on Redirect using ASP

I'm currently working on an application that uses ASP, and I am currently having difficulty repopulating the fields of a form after redirecting back to that form. Basically, I have a form where a user can input data into it (Say, an admin creating a new user within the system). Upon clicking the "Submit" button on the form, it goes to ...

Best FRAME replacement object? IFrame? Scrollable DIV?

I've got a Classic ASP page full of frames and I'd like to find a cross-browser-friendly alternative. In many cases, the frame exists solely to allow the user to scroll a window of text on one side of the screen. What's the best practice for showing scrollable content without using Frames? ...

Nested IF statements in ASP..what is wrong with the codes?

Hi guys.. I do have few lines of codes that consists of nested IF statements. But there's an error in it..I don't how to figure it out..hope anyone of you can help me to solve this problem..the codes as below.. <% If rs.Fields.Item("StudentStatus").Value="" If (rs.Fields.Item("CGPAOverall").Value>="2.00") Then %> <strong><font colo...

How to avoid re-execute the query on a MoveFirst

I have a query in a ASP page. The record set that I obtein must be printed in 3 different tables, after some conditions. So, for avoid extecuting 3 times almost the same query, I decided to search the recordset for the results I need...so I need to make a RS.MoveFirst two times. But...when I analyzed with SQL Profiler, I saw that MoveFir...

get_included_files in classic ASP?

Is there an equivalent to PHP's get_included_files in classic ASP? ...

What's wrong with this ASP connection string?

I'm at the end of my rope on this. It should be so simple. I just need to know what's wrong with this connection string: dbc.open ("Driver={SQL Server}; Data Source = ServerName; Initial Catalog = InitialDB; " "User ID = Username; Password = Password;") I get this error when running that line: [Microsoft][ODBC Driver Manager] Da...

Custom analysis rules for Microsoft Source Code Analyzer for SQL Injection (MSSCASI_ASP)?

Microsoft Source Code Analyzer for SQL Injection (MSSCASI_ASP) is a static code analyzer for classic ASP VBScript code that can help identify pages that might have a SQL injection vulnerability. It seems like a nice tool, but now that I've found Microsoft Code Analysis Tool for .Net (CAT.NET) -- a static analyzer designed to help find SQ...

The unkillable cookie (classic ASP3, PHP5, IIS5, FF3.5, IE8)

I have a system which generates a cookie in PHP, then needs to delete it from classic ASP. This is a quick-and-dirty dev box, just a spare XP machine running IIS5, PHP5, and ASP3. I used the hosts file to create a fake domain name (www.localtest.com) since other parts of the process wouldn't work with localhost. The PHP file is in a sub...

ASP Session value

Hi there, I'm setting a Session of MM_CustomerID in my code and then further down the page I need to insert the value of that session into a table. But each time I try to do this it comes up with an Invalid column name 'varCustomerID'. At the top of the page I have this code; <% set rscustomerid = Server.CreateObject("ADODB.Recordset...

Is possible to use jQuery intellisense with classic asp?

I read about jQuery intellisense and couldnt get it working in my classic asps pages.. Is it possible? If it yes what should i do? I am using VS2008 SP1... Thanks ...