asp-classic

Is it possible to unstick a remote IIS ASP server after an exception hangs the session?

I have been coding an app in classic ASP that accesses 2 Access databases. I had a page I was working on throw an exception, which is normal during development and causes no lasting problems. This time however, after the exception any attempt to open either of the databases would freeze the session with an infinite script timeout. If ...

Multiple infowindows - tearing my hair out

Ok, I'll admit I'm nowhere near the best programmer on the planet - and I'm used to the answer staring me right in the face but not making sense of it. Problem I need to display multiple markers on a map, each with their own infowindow. I have created the individual markers without a problem, but don't know how to create the infowindow...

Session in ASP is showing error

IF Session("days")> 1 then this statement is not working in my Classic ASP code.Any help is greatly appreciated Just I need to know whether this is a valid session code for Classic ASP (No error message is showing) ...

Is there a way to create a new instance for IRequestDictionary and IStringList on .NET?

We are working on a C# DLL that stores the values of a Classic ASP Session. Everything is okay but some QueryStrings being stored in Session. Problem is: we are able to read the QueryString from the DLL using IRequestDictionary and IStringList, but we can't find a way to recreate them the next time a page ask for them. We have stored a...

Howto synchronize two folders (on different servers) after an (classic) ASP upload.

hi I'm using a customized backend to upload images on a server. The issue is that the client has a load balanced server so I need to synchronize the upload folders on both server. I'm not able to know which server is executing on the backend. I'm just wondering which is the best way to compare and synchronize the folders on two servers...

Dumping an ADODB recordset to XML, then back to a recordset, then saving to the db

I've created an XML file using the .Save() method of an ADODB recordset in the following manner. dim res dim objXML: Set objXML = Server.CreateObject("MSXML2.DOMDocument") 'This returns an ADODB recordset set res = ExecuteReader("SELECT * from some_table) With res Call .Save(objXML, 1) Call .Close() End Wi...

Making a HTTP request to API possible with VB/ASP classic?

Is it possible to make requests to a Web API with ASP classic? For example just something as simple as the Flickr API, or was this sort of thing not supported way back when? ...

Spelling and Grammar Check

I have a asp based website. I would like to do spelling and grammar check for onblur event on a text field. Is there any javascript or asp based library available to do this? thanks -Vivek ...

Classic ASP on IIS 7

Hi, I am having problems with my app running on IIS 7. The application is a mixture of classic ASP and ASP.NET MVC (don't ask how and why). Anyway, the application is up and running except for some problems that I am experiencing. For example, I have a button on my page and when I click it, javascript is opening a popup which needs to ...

Classic ASP SQL Server Database Connection

I am aiming to create a very basic web based DBMS for Microsoft SQL Server. However, in order to connect to a SQL Server database you seem to require a ODBC connection on the server. Is there any possible way to overcome this? ...

Microsoft OLE DB Provider for SQL Server error '80040e14' Could not find stored procedure

I am migrating a classic ASP web app to new servers. The database back end is migrating from SQL Server 2000 to SQL Server 2008, and the app is moving from Win2000 x86 to Win2003R2 x64. I am getting the above error on every single stored procedure call within the application. I have verified: Yes, the SQL user is set up, using corre...

Parameterized include in Classic ASP with VBScript

I want to write a function that will include an external file, much like Server.Execute, but will pass along parameters. I'm aware that Server.Execute will pass along query parameters, but I'd like to pass data more generally. For instance: ' main.asp MyInclude("external.inc", Array("mykey", "myval")) ' external.inc Response.Write myke...

Suggestions/pointers for Post/Get to an .ASP (or .ASPX) page from a desktop app

I'm planning to have a desktop app interact with some .ASP or .ASPX pages on a server. I've only done a little bit with .asp pages and I'm thinking I'd just Post or Get a URL with some variables: MySite.com/Functions.asp?FunctionName=?Paramater1=somevalue?Parameter2=... I'm wondering if there is any better way to go about this? Am I ...

ASP SQL Error Handling

Hello, I am using Classic asp and SQL Server 2005. This is code that works (Provided by another member of Stack Overflow): sqlStr = "USE "&databaseNameRecordSet.Fields.Item("name")&";SELECT permission_name FROM fn_my_permissions(null, 'database')" This code checks what permissions I have on a given database - the problem being -...

Cookies concept

How to disable or clear the client browser Cookies using any technology may i think using javascript it will be usable to any techonology ...

Custom 404 not found page in iis 7 for Classic ASP

Hello, I installed windows 2008 server integrated iis 7.0 1 day ago, i use windows 2003 and iis 6.0 with windows 2008 server, everything is alright except one thing. in 2003-iis6 i could use custom 404 pages to handle for url friendly sites. example i could set custom404.asp as custom 404 pages(execute url) in 2008, i can't do it. w...

Simple ASP function question

Good Morning, I have got the following function: FUNCTION queryDatabaseCount(sqlStr) SET queryDatabaseCountRecordSet = databaseConnection.Execute(sqlStr) If queryDatabaseCountRecordSet.EOF Then queryDatabaseCountRecordSet.Close queryDatabaseCount = 0 Else QueryArray = quer...

standard encryption decryption across different platforms

hey guys i need to implement a standard encryption decryption logic across an entire project platform which has different clients implemented using different platforms as follows: iphone app (objectiv c) website (classic asp) webservice (asp.net) samsung bada app (c++) the iphone app as well as the website need to send info to webser...

Should my validator have access to my entire model?

As the title states I'm wondering if it's a good idea for my validation class to have access to all properties from my model. Ideally, I would like to do that because some fields require 10+ other fields to verify whether it is valid or not. I could but would rather not have functions with 10+ parameters. Or would that make the model and...

Looping through worksheets in an Excel (xls) file using classic ASP on a win 2008 server

Hi, I have just migrated an older ASP solution to a windows 2008 server and everything works out fine except for using ADOX.Catalog to list all the worksheets in an uploaded xls file. I use the following code: <% Set objExcelCon = Server.CreateObject("ADODB.Connection") With objExcelCon .Provider = "Microsoft.ACE.OLEDB.12.0" .Conne...