asp-classic

Return recordset from function in classic ASP

Hi, I'm at a loss on how I can return a readable recordset from a function in classic ASP. This is what I came up with, but it's not working: Response.Clear Response.CharSet = "utf-8" Response.ContentType = "text/plain" Dim Count Set Count = Test Response.Write Count.Fields(0).Value Function Test Dim Query, Connection, Comman...

Sending mails in different languages using ASP and CDOSYS

I want to send an email using arabic text as subject line. The code piece converts the special characters into arabic text properly for message body but fails to do so for message subject. I would like to know what I am missing ? Set objCDOSYS = Server.CreateObject("CDO.Message") Set objCDOConf = CreateObject("CDO.Configu...

Outputting Images in ASP FPDF problem

Hi I'm attempting to use the ASPFPDF class to output an image on a pdf using the very simple code below: <!--#include file="fpdf.asp"--> <% Dim pages Dim pdf Set pdf=CreateJsObject("FPDF") pdf.CreatePDF "P", "mm", "A4" pdf.SetPath "fpdf/" pdf.Open() pdf.AddPage("P") pdf.Image "invoiceheader.jpg" pdf.Output () %> When run...

How to implement Website security based on client hardware or other solution?

Hi, I have two websites (one asp classic and the other asp.net) which we would like to implement some kind of security based on the client's hardware. We want something other than a password which could be shared. The purpose is to be sure access to information on the websites is not shared. We were contrmplating storing hardware info...

Close PrettyPhoto and go back to parent?

Hi, I have an asp login form that opens into a prettyphoto modal window via iframe from my main asp page. I can complete this form and login no problem but it loads the protected pages in the prettyphoto modal window. Is it possible to have this window close and redirect to the parent page once login form is submitted? Example: index.a...

Returning a boolean from a T-SQL Stored Procedure..

What's the most efficient way to return a boolean (true/false) out of a T-SQL Stored Procedure? I want it to do a query and return whether it succeeded or not. I'm calling via ASP. Let me be a little more specific about what I'm doing. If a record exists in a table (indicating a document is already reserved and can't be checked out), I...

How to get the size of the network folder in asp

My problem is mentioned on this link link text I have developers section and production section in my company.The code of Folders.size works in developers section,while doesn't work in Prod server.I have no clue as to why this is happening. I think the problem happening is due to large folder size,I'm not sure though. I was able to eve...

asp - mysql not updating records

Dim prestaDB prestaDB = "DRIVER={MySQL ODBC 3.51 Driver};SERVER=mysql50-64.wc1;PORT=3306;DATABASE=example_db;USER=example_user;PASSWORD=example_password;OPTION=3;" set conn = Server.CreateObject("ADODB.Connection") conn.open prestaDB conn.execute("update ps_product set quantity = " & sSeg(4) & " where reference = '%" & sSeg(0) &"%'")...

When will Folder.Size not work in VBScript

http://stackoverflow.com/questions/3871260/how-to-get-the-size-of-the-network-folder-in-asp I have mentioned my problem on the above link and so far I have come to the conclusion that possibly a Folder has been given Protection rights because of which I cannot get it's Folder.Size in vbscript using FileSystem object.Can anyone shed ligh...

Why do I need 'Classic Mode' in ASP.NET MVC in IIS7?

Why do I need 'Classic Mode' in ASP.NET MVC in IIS7? Integrated Mode provides more features and better performance, so why do I need Classic Mode? Perhaps I dont understand the differences, please can someone explain? ...

How to get Custom Error Pages working for Classic ASP with IIS 7 Integrated Pipeline

I'm working on a website with legacy Classic ASP pages (being converted to ASP.NET on an as needed basis) and new ASP.NET pages. Use of IIS 7 Integrated Pipeline has been very helpful with our configuration. For example, we were able to get forms authentication working auto-magically with the classic ASP pages simply by configuring the a...

Is it possible to restrict windows authenticated users in an ASPNet app to specific domains?

I'm in the process of pulling a classic ASP app into Mvc2. I'll be deploying to an intranet and have been asked to enable support for Windows Authentication. The network I'll be deploying to has a few AD Domains and I'll only need to integrate with one in particular. Is it possible to use Windows Authentication and only allow authenticat...

Remember me login - Asp script

hello i have to create a "remeber me login" asp script, have read many scripts about this procedure and have see that many people use to store username and password inside a cookie. In my opinion it is not secure (safety), some advice ...

How to build customized ListView that can fire the SelectedIndexChanged event ?

Hi guys, I'm trying to generate the following html: <ul class="listItems"> <li class="Selected">Val1</li> <li>Val2</li> <li>Val3</li> <li>Val4</li> <li>Val5</li> </li> I thought of using a ListView and customize its ItemTemplate. <ItemTemplate> <li> <asp:LinkButton Text='<%#Eval("BoundItemField")%>' CommandName="Select" ...

LDAP + ASP Classic + ADODB = 2147217865. (Using LDAP to talk to Active Directory in ASP Classic. Error:2147217865)

I need to use LDAP to authenticate users for an old ASP website. I have been using the code found here. It looks like this: <%@ LANGUAGE=VBSCRIPT %> <%Option Explicit%> <% Function getADUserInfo(strUID) on error resume next strGeneralLookupError = false strBase = "<LDAP://DC=[DOMAIN], DC=[DOMAIN EXETENTION]>" strFilte...

What is the difference between asp and asp.net?

Hi, I'm wondering what is the difference between asp and asp.net? ...

How do I query the Windows 2008 x64 Index Service from 32-bit ASP applications?

Recently I stumbled upon a problem that involves moving asp classic sites from a w2k3 server to a w2k8 64 environment. It involved getting indexing services to work with asp classic. I searched every where tried many solutions and they all failed. The problem: running a 64bit indexing service on a 32bit application pool (for asp classi...

Get simple response from SOAP service with classic asp

Hi, I have been tasked with obtaining a response from a SOAP request, using classic asp. The request is about as basic as it gets - I just need to fire off 3 parameters to a web service URL and write out the response (which is in simple plain text format). I've checked the service using a couple of SOAP testing utilities and it output...

Returning Object from Classic Asp

Hello Friends, I am using Classic Asp to build request to a url which is successful now the problem is that I want to return the Request object from the function and getting the following problem: Object doesn't support this property or method, How can I do it ? Set objSrvHTTP = Server.CreateObject ("Msxml2.ServerXMLHTTP.3.0") objSrvH...

IIS 7.5 doesn't run *.inc as ASP Classic

Hi, I'm setting up an ASP Classic website on Win7 x64, I have done the usual trick (Add site as Application to enable global.asa, use Classic pipeline App Pool, Enable 32-bit Applications: True, Load User Profile: False, Enable Parent Paths: True, give Everyone full access to site files, use odbc 32), and the site is up and running for...