asp

Server.Transfer not working on IIS7

I have a few ASP pages. One of them is using Server.Transfer to load another ASP page. But the page does not get called. If I change it to Response.Redirect, it is working fine. Can anyone help me? By the way, it is working fine on IIS 6 on Windows Server 2003. It only has problem when I moved to IIS 7 on Windows Server 2008. Thanks ...

Removing frames

Hi, I am trying to reorganize a site. There are some frame pages which I would like to remove as the same result can be achieved with less overhead. However, the frame below: <frame name="right" src="/PageTurn/BrowsePub.aspx? PublicationID=<%=PubID%>&RunDate=<%=Server.URLEncode(PubDate)%>" scrolling="auto" marginwidth="0" marginhei...

Best way to run a long DB query in classical ASP?

Hi guys, I have a couple of queries for a web site that take a long time to run due to the data model and the amount of data held in the tables. So far I've been running them manually against the database to avoid any timeout issues etc.. however the site owner has asked for these to be made available on the site so he can get the quer...

ASP Dictionary in array memory handling

I have a piece of code that takes several rows from a database and creates a dictionary object which I push into an array. do while index < rs.RecordCount or (not rs.EOF) set dict = Server.CreateObject("Scripting.Dictionary") for each x in rs.fields temp = x.value dict.add lcase(x.name), temp next set records(index) = ...

asp form - access database - cyrillic russian results page problem

Inherited problem... the site works fine in 6 other languages, in fact the Russian area is now working fine and the request quote form work (functionally), with one problem, the email results we get is loaded with very weird letters: (here they are copied) ôâàïôâàïôâàï ïôâàïôâàïôâàï ôâàïôâûàïôêàï ôêûâï ïôâàïûâàï I have tried to encode...

JQuery Tab using ViewModel data...

using asp.mvc & jquery (with ui.tabs): i would like to change the view model before clicking the tab (programatically) but it doesn't appear to be working. i click the tab just fine but the view model's data hasn't changed. here is how i'm doing it: first: i check to see if you are my tab. if so, i check to see if the controller h...

Integrated Authentication on Webserver - Security?

We have our own web server hosting our website that is open to the public outside of our network. I have a request to make our "Internal Postings" link on our Careers page to authenticate the user against our network's Active Directory list. I currently have it setup so the link hits a page inside the directory structure of the website...

Mystery type mismatch while dealing with ASP

Hey everyone, I've never developed in ASP in my life, but a client wants some additional functionality in one of his really terrible ASP programs extended. I've tried to pick up as much as I can in a short period of time, but I'm running into a mystery bug here. When I unit-test this code on my local system, it works fine. On their w...

ASP and SQLite database connection

Im working with ASP and a SQLite database trying to connect and retreive records from the database. I can't seem to get the connection to work correctly and keep getting script errors when I open the ASP file in a browser. Can anyone give me example code which will connect to an SQLite database and run an SQL query on it that is able to...

[ASP] HTTP Request (post)

How would I go about creating a HTTP request with POST data in classic asp (not .net)? Google hasn't been much help ...

IIS 5.0 Calling COM+ Objects from ASP scripts

Note: I couldn't decide whether this was more appropriate for Stack Overflow or Serverfault, so if you have some insight into that, let me know. Background: Recently, my server (Windows 2000, MS SQL 2005, IIS 5.0, ASP Classic) experienced a spike in traffic to a specific set of ASP pages. This spike caused a massive drain on the process...

authentication to sql 2005 using domain account from ASP

I cannot seem to use a Windows account to access my database from my ASP page. Here is my connection string: PROVIDER=SQLOLEDB;DATA SOURCE=NHA-SQL-I0;UID=DOMAIN\NHA-svcRequestForm;PWD=password;DATABASE=RequestForms I get the classic: Microsoft OLE DB Provider for SQL Server (0x80040E4D) Login failed for user 'NIRHB\NHA-svcRequestForm'. ...

Conceptual differences between PHP and ASP

I'm working on an open source PHP project for websites, and once I release version 1.0, I want to provide the same product for websites using the IIS/ASP.NET platform. When the time comes I'll go ahead and learn ASP.NET to do the translation, but it would be helpful for me to know already if there are any fundamental conceptual or archi...

Classic ASP - It’s totally outdated but is it irrelevant?

Although I develop all of my company’s web-sites in .net, all of my personal sites are still in "Classic ASP". I'm always being pressured to move away from it... but it works! Why change? ...

Encode in ASP and decode in PHP

Hello, I am looking for 2 lines of code, one which will encrypt (using a shared key) a string in ASP and the other will decode the same string in PHP. Can someone please suggest. ...

Classic ASP & ASP.Net Authentication

I have two separate apps (one is classic asp, the other is asp.net) which, from the point of view of the user, should appear seamlessly as one "application". As others have pointed out, the two apps can't share session information, so I am planning to use windows authentication along these lines:- In the ASP world: Request.ServerVariab...

Make enter key behave like tab key in Javascript

So far i have this being called on keypress. function chkenter() { e = event.keyCode; if (e == 13) { event.keyCode = 9; return false; } } but even though i set the keycode to 9 it doesn't tab over to the next control. How can i accomplish this? I'm working in Asp Classic. What I ultimately want is for the focus to m...

ASP.net/Classic ASP: Sales Tax Rate Calculation via Zip?

Are there any ways to calculate Sales Tax Rates via some sort of web service or third-party application? Are there anything other than third-party apps for this? I have a Classic ASP application that simply needs some way to calculate a rate based on an address or zip. Is this possible at all? ...

How can I use a regular expression to validate a password?

How can I use a regular expression to validate the characters in a password? The password must contain at least 1 special character, 1 digit and 1 letter. It should [not] be more than 8 characters long. ...

DateColumn is not getting displayed properly in CSV imported by asp page

Hello All, I am exporting data to .csv file from asp page. I am facing problem in the column which is showing date. Some date comes left aligned and some comes right aligned. As such there is no difference in the dates coming because I am just looping a recordset and writing the rs field which has datetime data. Note: When I append " ...