asp

Submit multiple forms on one page ( ASP )

I have a table where each row will represent a form. There could be over 25 rows in the table. I need to post the rows that have a checkbox checked and get the results and display success of fail. I am posting to a site that I do not have any control over and they take one rows worth of data. I tried this using IFrames and it seemed to...

Bookmarked page redirect

I recently converted a site from asp to CF. Unfortunately, alot of the old users had the "homepage" bookmarked. www.thedomain.com/homepage.asp Is there a sort of catch all way I could redirect any traffic from that page to the current index.cfm? I would normally just delete those files, but the owner(s) wanted to keep it around for t...

Leveraging SOAP in Classic ASP

Clarification: this is not about user agent calls to pages, but Classic ASP calling ASP.NET! I have applications that are midway through a transition from Classic ASP to ASP.NET. There are a half million lines of code, so a complete rewrite of everything at once was simply not plausible, or frankly prudent considering that the vast ...

Recommended hash for passwords in ASP Classic

What is the slowest (therefore best) hash algorithm for passwords in ASP Classic? EDIT: For those unaware, when hashing passwords, slower hashes are preferred to faster to help slow rainbow table style attacks. EDIT2: And yes, of course speed isn't the only valid concern for hash selection. My question assumes that All other things be...

how to Change the asp response Content-Type at run time

i have java web service, returns an Object contains couple of variables data, this web service being called in ASP code, but asp code always getting the Mime Type is "text/plain". even though I did setup the below Response.ContentType = "application/xml" and not parsing the web service results and error out type mismatch at loadXML. Can ...

User Access Checking for Rights on Particular Database Objects or Records

I'm having a friendly debate with a developer about a situation where users are logging in and accessing documents in a web application. When we load the document for the user to view, we have the userID in session and the documentID that may be passed via QueryString. To prevent the user from modifying the documentID on the QueryString...

Suggestions for a Beginner Level ASP/XML Test

I'm looking for suggestions for a beginner level ASP/XML test. Essentially I'm trying to hire an extremely junior programmer. I'm in the process of trying to hire a junior programmer to help maintain a large code base of somewhat repetitive ASP pages. I'm slowly in the process of making more modular, maintainable code but until that h...

IIS7 - Uploading files with ASP problems

Hi, We've just moved our website to win2008 and IIS7 from win2000 with IS5 and I have some problems. I have a folder that in it is an ASP page that upload a file to an upper folder, in the old IIS, I gave to the folder with the ASP page the permissions of the administrator and it's work fine, the files could be uploaded to an upper fol...

searching VB6 code

I've inherited a ASP/VB6 code base (not my forte... yet) and I'm trying tease it apart to figure out the cause on an error message I'm receiving when running the app. I've traced it back through an event that is being raised in on of my classes. Is there away in windows I can search the bulk of the code base for where it is being consum...

authentication problem or bug

There are 3 web apps. Site A and B are both ASP.NET Web Application with FormsAuthentications configurations, and there is a protected folder in site B which also configured correctly in the web.config. Site C is a classic ASP web which keep authentication status with Session. Now please consider the following steps: 1, There is a lin...

Stored Procedure failing on a specific user

I have a Stored Procedure that is constantly failing with the error message "Timeout expired," on a specific user. All other users are able to invoke the sp just fine, and even I am able to invoke the sp normally using the Query Analyzer--it finishes in just 10 seconds. However with the user in question, the logs show that the ASP alwa...

ASP - Randomize function returning same value for two different seeds

So I'm generating a random number using Rnd and Randomize to set a seed that looks like this: Randomize lSeed Response.Write Rnd I'm noticing that it's returning the same result for two values in a row for lSeed (e.g. 123, 124) but then on say 125 it will return a new value but 126 will be the same as the on for 125. Why would this be...

How do I check if session cookies are enabled in Classic ASP?

What's an elegant way in Classic ASP to check if session cookies are enabled in a user's browser using server side code (because javascript might be disabled as well). I have a solution of my own but it looks ugly as hell. @James - that doesn't differentiate between setting a session cookie and a general purpose cookie though (IE lets ...

Converting Plain Text to Clickable link or Link to PlainText in asp.net

Hi, I need your advice with converting plain text to an URL. The scenario will be this: The user will select some entry and then click a "convert to link" button. The entry text the user selected will convert to (link: selected_text). I do it with JavaScript. And after that, when he clicks the Save button to save all his entry, I don'...

How do I get ‘footer’ content on a master page to push down when main content doesn't fill a page

I have the following code for my masterpage: <%@ Master Language="C#" AutoEventWireup="true" CodeFile="MasterPage.master.cs" Inherits="MasterPage" %> <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt; <html xmlns="http://www...

What's wrong with this ASP recursive function?

When I call this function, everything works, as long as I don't try to recursively call the function again. In other words if I uncomment the line: GetChilds rsData("AcctID"), intLevel + 1 Then the function breaks. <% Function GetChilds(ParentID, intLevel) Set rsData= Server.CreateObject("ADODB.Recordset") sSQL = "SELE...

How to get the next identity number used in SQL 2005 and ASP?

I was previously getting the next available autonumber used in Access by doing a simple query like so: SELECT RecordNumber, Info FROM myTABLE WHERE 0=1 This way I could create a variable to hold the currentRecord and it will use the same autonumber that Access was going to use when I was updating the row Example rs.AddNew currentRec...

Vector or diagram drawing webservice

I have a webapp from which I'd like to insert diagrams and images quickly and easily. I expect there is, somewhere out there, a webservice which will take a URL with a parameter that describes the vector graphics or diagram and returns an image. No unlike what google charts does for graphing data. Any resources or ideas on this? If I...

Classic ASP - IIS 5 to IIS 6 migration causes image caching problems?

Apologies in advance for the long-winded question. I'm really a database programmer, but have inherited support of a classic-ASP intranet application which has recently been migrated from IIS 5 to a new server running IIS 6. The user-base is about a dozen, all using IE 6. The UI displays hierarchies of items returned from a database, u...

ASP Form Recipient Error

I have a form that when filled out and submitted, works fine. When the recipient replies to the sender though, the email actually goes to him instead of the intended party. Below is the form. Help! <% Dim roomsanswer, fashionsanswer, commentsanswer, nameanswer, addressanswer, citystateanswer, zipanswer, phoneanswer, phone2answer, email...