asp-classic

accessing variables declared outside the asp code

<script ID="clientEventHandlersVBS" LANGUAGE="vbscript"> s=pass() y=s </script> <% session("password")=y Response.write(session("password")) Response.write(y) %> i have this code. but nothing is getting stored inside the session variable neither anything is getting printed. cant i access the variables declared outside the asp code or...

Cross domain XMLHttpRequest in classic ASP

My code is working fine till i migrate it to another server with firewall. After since, some part of my code is not working. Its seem to be the xmlhttp POST problem. Can someone point me to the right direction and how to determine if the firewall is the problem. My client insisted to me to use classic asp, so i cannot upgrade to .net. D...

Call a subroutine/function in Global.asa from an ASP page?

Hi all, In Classic ASP, shouldn't a subroutine in global.asa be available to all .asp pages in the application? For some reason I am having trouble calling the sub. Before I look at whether something specific to my application is causing the problem I wanted to make sure I understood properly. global.asa: <SCRIPT LANGUAGE="VBScript" RU...

Web application structure

Hello, Something I have always had problem with is structuring my web applications. When I was learning PHP at college a teacher used to have the PHP in a separate file to the HTML and he then included the PHP file at the top. How does everyone else structure there applications (web or not). This is an example of my latest web appl...

How to go about converting this classic asp to asp.net

I have some classic asp code that needs converting to asp.net. So far I have tried to achieve this using datareaders and repeaters and had no luck as the menu loops through 4 different record sets, passing along the menuNid before moving to the next record. Please can you tell me what method you would use to conver this code... i.e dat...

Multilangual website using ASP and a database

i want to consult about something i do. my website has 3 languages. Hebrew (main), english and russian. i am using a database having a table with the fields: ID, fieldName, 1, 2, 3. where 1 2 3 are the languages. upon entering the website language 1 (hebrew) is chosen automaticly until you choose another. and saved as a session("curre...

VBScript get MIcroseconds

Does anyone knows how to get microsecond value in VBScript (Classic ASP) without using SQL Queries ...

Upload files from website

All I want to do is allow the user to browse through their folders to look for a file, select it and then press submit which saves the file to my server as well as the path to the saved file. How would someone do this? (Some sort of tutorial website would help a lot) ...

ASP classic to create a folder, and then change the permissions on it

Hello All, I am relatively new to this whole ASP classic programming thing, and I am not working on a pretty complex script. Essentially the script creates a domain user account, and then creates their home folder on a networked machine. I.E: \SERVER\DIR\HOMEDIR. I have the code working marvelously, except when it comes to making their...

Update Field in ADO Recordset and Re-sort values in Classic ASP

Here's the current situation: I have a recordset of products. The price of these products depends upon other information elsewhere on the page. So, as I loop through the recordset for output, I calculate the price using a function, and display it. This all works wonderfully. Now, for the new wrinkle. I need to be able to sort the pr...

SQL SELECT INSERTed data from Table

its in ASP Classic. MS-Access DB. i do: INSERT INTO Orders (userId) VALUES (123)" what i want to retrieve is orderNumber from that row. its an auto-increment number. so i did: SELECT orderNumber FROM Orders WHERE userId=123 but since it is on the same page, the SELECT returns: Either BOF or EOF is True, or the current record has bee...

finding subfolder of a folder getting by getFolder method in asp

hello guys, i am troubling from this problem , i want to find the list of folder but there is some problem , i have a support folder in root directory, first i have the subfolder of this "Support" folder then in each folder i have to find a specific say "x" folder and then in this x folder i want to check each file and folder. i am send...

How do I go about link web content in a database with a nested set model?

My nested set table is as follows. create table depts ( id int identity(0, 1) primary key , lft int , rgt int , name nvarchar(60) , abbrv nvarchar(20) ); Test departments. insert into depts (lft, rgt, name, abbrv) values (1, 14, 'root', 'r'); insert into depts (lft, rgt, name, abbrv) values (2, 3, 'department 1', 'd...

PayPal express checkout on the shopping cart

i wish to achieve: so in my shopping cart page i set session("Payment_Amount") = total and downloaded both asp files the wizard told me. expresschecout.asp and paypalfunctions.asp. and added the API credentials to the corect place. and i add the form from their wizard: <form action='expresscheckout.asp' METHOD='POST'> <input type='ima...

Upload file and parse in classic asp

Any ideas how file uploading and (simple) parsing can be done through pure ASP? I have various upload scripts, but they all either save a file to a folder or in a database. I can't seem to modify these examples correctly to put the file in an array. Here's the 2 scripts that I'm currently using: http://www.asp101.com/articles/jacob/sc...

Classic ASP application-wide initializations and object caching

In classic ASP (which I am forced to use), I have a few factory functions, that is, functions that return classes. I use JScript. In one include file I use these factory functions to create some classes that are used throughout the application. This include file is included with the #include directive in all pages. These factory functi...

Classic ASP vs. ASP.NET encryption options

I'm working on a web site where the new pages are ASP.NET and the legacy pages are Classic ASP. Being new to development in the Windows env, I've been studying the latest technology, i.e. .NET and I become like a deer in headlights when ever legacy issues come up regarding COM objects. Security on the website is an abomination, but I've...

Can classic asp and ASP.NET MVC run side-by-side on the same site?

Just a quick question. I suppose I could just try it but I like StackOverflow because of the quick responses and the comments from people more experienced than I am. Can classic asp and ASP.NET MVC run side-by-side on the same site? For example; the site might run a CMS written in ASP.NET MVC but need to seamlessly integrate with a cart...

Match all characters in group except for first and last occurrence

Say I request parent/child/child/page-name in my browser. I want to extract the parent, children as well as page name. Here are the regular expressions I am currently using. There should be no limit as to how many children there are in the url request. For the time being, the page name will always be at the end and never be omitted. ...

how to solve object required error in Classic ASP

How to solve the object required "checkMultiple" error. any idea how to disable the cmdButton7 when checkMultiple is checked and enable it when sum = 100. using VBSCRIPT. Sub disableButton() If checkMultiple.value = 1 Then document.form1.cmdButton7.enabled = False ElseIf sum = 100 Then document.form1.cmdButton7...