asp-classic

Attachments are 0 bytes for file sizes over 100k in Windows 2000 server IIS with ASP Classic

I'm using classic ASP to send an email with an attachment. It works fine for attachments under 100k, but anything larger than that gives me a zero-byte attachment. I've tried changing messages sizes under SMTP Virtual Server Settings, but nothing seems to work ...

redirect to iphone/blackberry compatible design

Hi, I created a iphone/blackberry compatible design for a website. If the website is xxx.com, iphone/blackberry compatible design is at xxx.com/m. How do I detect iphone/blackberry users and make sure website redirects them to the compatible design. ...

Ingres with Classic ASP

Hi All, I have a classic ASP application which is connecting to Ingres 9.3 database. The classic ASP website in IIS has windows integrated security enabled. It connects to Ingres for reading data, and its passing logged in user name and password to ingres for connection. We cant give read access to all the users, so I need some way of i...

Classic ASP, application variables, refreshing

Hi, I have an application variable which is populated onstart (in this case it is an array). Ideally I need to rebuild this array every 3 hours, what is the best way of going about this? Thanks, R. ...

Debugging with Response.Write in classic ASP

I am trying to debug some code using Response.Write, but when I run the code it skips over that statement and errors out at some point further in the code. How can I get my Response.Write statements to show without the other errors coming up? ...

Advice on using ASP.net WebForms or MVC

I have a public facing hobby site that gets about 3000 unique visitors a day, written in classic ASP that is in bad need of a revamp and redesign. I've faced the realization that an upgrade to ASP.net is the best way to go to implement features that are just too hard in ASP for the hobbyist (consuming RSS feeds, authentication and user ...

Upload An Excel File in Classic ASP On Windows 2003 x64 Using Office 2010 Drivers

So, we are migrating an old web app from a 32-bit server to a newer 64-bit server. The app is basically a Classic ASP app. The pool is set to run in 64-bit and cannot be set to 32-bit due to other components. However, this breaks the old usage of Jet drivers and subsequent parsing of Excel files. After some research, I downloaded the 6...

Can I store a Scripting Dictionary in a session variable?

I have a classic ASP site where I create a dictionary when the user logs in and then stores that dictionary in a session variable like so... dim objDict set objDict = server.createobject("scripting.dictionary") ' processing here to fill dictionary set session("user") = objDict That all works fine and dandy but when I navigate to anoth...

What's the best way to redirect an entire classic ASP website to a new domain ?

I need to redirect an entire classic asp based website to a new domain whilst still maintaining the search engine ranking of the old site. I think a 301 redirect is required but not sure what the best way of doing this would be as I don't think .htaccess works on an IIS Windows based server. I would prefer not to have to change existin...

Classic asp inline split

How do I split inline in classic asp? Something like this for getting domain: domain=split("[email protected]").item(1) ...

matching string with database

I am coding simple 404 seo for my website. I am little confused at one point. I need codes to go over categories table and see if it matches with the string. If yes, then it should print category's name, if not then it should display "page not found" message. I dont understand where I went wrong here... > > <% > > WebsiteQueryString...

How can I deal with having to code classic ASP?

I've just accepted a classic ASP project, because I need the work and the pay is good. So, can I use Visual Studio >= 2005 to edit this? Are there other editors that can deal with it, such as Aptana, NetBeans? Are there add-ins to other editors that allow them to deal with it? I don't want to go back to Visual Studio 6, because these...

IIS Active Directory Login, But Run MSXML as Anonymous User

We currently use the MSXML.dll from Classic ASP for certain parts of our system. On a new site we want the users to be prompted for login using Active Directory. I have disabled "anonymous access" to the site and I have enabled "Integrated Windows authentication" and "Digest authentication for Windows domain servers". When going to a p...

ASP (VBscript) radio buttons not returning value

I have 2 very simple pages, an HTML page and a classic ASP page .. the html page has a form which calls (and sends) the data to the ASP form (which then prints out the data) The problem is I'm not getting the value of the radio button, I'm simply just getting "on". Here is the html: <form action="form.asp" method="post"> <strong>G...

Classic ASP: How to check if ASPSESSIONID* cookie has been marked as secure?

Hi All, I am trying to mark the ASP session ID cookie as HttpOnly but can't seem to find a way to tell if it is working. The environment I am trying this in is as follows: OS: Windows Server 2003 IIS: 6 ASP Version: ASP 3 (Classic ASP) In order to mark the cookie as http only, I followed MS KB As per our architect's suggestion, to tes...

Regular expression matching more than I need it to

I'm having some trouble trying to develop a regular expression which will pick out all the function calls to "tr" from this block of asp code below. Specifically I need to get the string in each "tr" function call. if(RS.Fields("Audid").Value <> 0 ) Then Response.Write ("<td>" & tr("RA Assigned") & "</td>") else ...

Created a new database on SQL Server, can't be seen by web apps because permissions aren't set.

So I created a new database on my SQL Server box and then added an ODBC entry so my ASP code knows what it is. Now I am getting this error: Cannot open database "DB_NAME" requested by the login. The login failed. I checked out the permissions by right clicking the db in Management Studio and checked permissions and low and behold it i...

problem with listing images (listing first one twice)

I need to list images from the server. The problem is that, first image needs to be in different div. I dont know what I do wrong here. The following code lists images as; 1.jpg 1.jpg 2.jpg 3.jpg but it needs to list as; 1.jpg 2.jpg 3.jpg <div id="main"> <a href="<%=IMAGES(0)%>" title="<%=objProduct(...

Getting different result copying formula from Excel to ASP

I'm trying to replicate a formula from an Excel worksheet onto an ASP page, but having copied the formula over I'm getting different results (in fact an error because the ASP ends up trying to square root a negative number). Surely Excel handles operator precedence the same as classic ASP? The formula I'm trying to replicate is a simpl...

SQL injection on Classic ASP pages with parameterized queries: text fields

I've parameterized my queries in my Classic ASP app, but am unsure whether I need to sanitize or scrub free text fields or if the parameterization is sufficient to prevent injection. ...