Hi all,
I have an plain-old asp web site that makes a call to a method in a dll written in VB 6. This method sets an error code in the VB Err Object if something goes wrong. Now I want to access that error code and description set in the Err object from a javascript (where I do the call to the dll method). First: is it possible? Second...
I have to use the XMLHttp object in classic ASP in order to send some data to another server via HTTP from server to server:
sURL = SOME_URL
Set oXHttp = Server.CreateObject("Msxml2.XMLHTTP")
oXHttp.open "POST", sURL, false
oXHttp.setRequestHeader "Content-Type", "application/x-www-form-urlencoded;charset:ISO-8859-1;"
sPost = SOME_F...
I need to extract only the 2nd level part of the domain from request.servervariables("HTTP_HOST") what is the best way to do this?
...
I am a complete beginner trying to develop for FCKeditor so please bear with me here. I have been tasked with developing a custom plugin that will allow users to browse a specific set of images that the user uploads. Essentially the user first attaches images, then uses the FCKeditor to insert those images.
So I have my plugin directory...
Looking at MVC frameworsk, it seems we require more of classic ASP knowledge then ASP.NET postbacks and Viewstates. Are we moving backwards to complex UI + code logic in the actual HTML?
...
I'm a hobbyist programmer with couple of database driven mobile web sites and I finally have decided to switch from classic asp to .net. But after couple of days reading I couldn’t decide which way I should go. Shall I learn c# or continue to vb in .net?
...
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.
...
I am using an ASP page where I have to read a CSV file and insert it into DB table "Employee". I am creating an object of TestReader. How can I write a loop to execute up to the number of rows/records of the CSV file which is being read?
...
I'm working on updating a classic ASP web page used by a number of sub-sites maintained at the company I work for.
The purpose of the page is to notify the user that they are leaving "our" site and going to another site. It's basically a disclaimer, but due to resource limitations and time limitations I can't add the disclaimer to every...
Hi All,
I was wondering if anyone had come across this one before. I have a customer who uses special characters in their product description field. Updating to a MySQL database works fine if we use their HTML equivalents but it fails if the character itself is used (copied from either character map or Word I would assume).
Has anyone ...
I'm working on a project that combines .NET with some legacy ASP code via COM interop. The legacy ASP is written in JScript - files look like this helloworld.asp example.
<%@Language="JScript"%>
<html>
<head>
<title>Jscript ASP Page</title>
</head>
<body>
<h1>JScript ASP</h1>
<p>This is JScript ASP at <%=new Date()%></p>
<%
va...
Hi
Does visual studio 2008 support classic asp development?
It's been years since I created a classic ASP website and I was wondering if I can use my current toolset or if I have to resign myself to notepad.
Thanks
Matt
...
Like the title says, the error I get is the following:
An invalid '/' or '\' was found in the Path parameter for the MapPath method.
I'm using ASP classic and basically trying to access a folder on one of our servers. I Googled around and judging from what most people say, I should take off the \ prefix from my server path. But when I...
We have an old system running on a WinServer2003 R2 - IIS6 and it was written using classic ASP.
We need to trap all errors and for that, I configured IIS to redirect 404s and 500s to a custom page (custom errors config) that writes the info to a log file (this page creates and manages the logs).
Here is the weird thing: The first time...
Just wondering if there are any good server-side libraries for AJAX (prefer JSON rather then XML but anything is good) for classic ASP (VBScript)...
Rather not reinvent the wheel if it's already working and debugged.
Cheers,
Gaspard
EDIT: Server-side ASP VBScript... I have already seen many javascript client side libraries.
...
Using classic ASP VBScript, coupled to MS SQL Server, we have a function that takes 3 integers, page_id, heading_id, language_id
it looks up the page heading in a translation table...
This table contains roughly 10,000 rows...
The heading column is nvarchar(1000) plus the 3 int columns meaning it's around 2KiB per row max...
so my qu...
I have a variable last_login and want to output a message if the last login was yesterday, today or elsewise output the date. The last two cases are clear but how can I check if a given date in classic asp was yesterday?
I'm blockheaded right now...
...
I'm using Server.HtmlEncode on a utf-8 string in asp-classic, which works fine until there are some accents in the string e.g. Rüstü Recber, which appears as Rüstü Recber (Rüstü Recber in the source).
I've tried setting the Response.Charset property to utf-8 but this doesn't make any difference.
...
We are trying to make big decisions about our support for classic asp. Does anyone see a reason why Microsoft can't drop support for IIS.
Any examples of Microsoft technologies like this that have had their support dropped would help. ASP is a tricky one because dropping support in IIS would eventually kill it, unlike other technologie...
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("U...