asp-classic

retaining the form inputs on clicking the submit button

i have a form. the code is: <html> <body> <form method="post" action="array.asp"> <input type="text" name="Req_id1"> Req_id: <input type="text" name="Req_id"> <input type="submit" value="search" id=submit1 name=submit1> <select id="selFiles" name="selFiles" class="Select" style="width: 500px" tabindex="130"> <% D...

Prevent browser's back button from reopening pop up window on previous page

How would I prevent the browser from opening the pop up window that was displayed from the previous page when the user clicks the back button? I hope that made sense but I'll explain it in point form below: There are three pages: Page1, Page2, Page3 User loads Page1 and clicks a link to load Page2 in a new window using JavaScript (i....

putting values from database into a drop down list

hi. my tool is in asp. i am using this code for a query in sql dim req_id req_id=Request.Form("Req_id") if req_id<>"" then Set conn=server.CreateObject("adodb.connection") conn.Open session("Psrconnect") Set rs=CreateObject("Adodb.Recordset") rs.Open "select * from passwords...

Log user name and password to text file from form

We have a very old client that is having problems trying to log in to a website. At the moment we think the user is not entering a correct username. The site is in ASP does any one have any code that I could borrow that would be able to log and write down whats posted and then post that user name and password to the normal submit functi...

Windows Server Appfabric

I am considering using Windows Server Appfabric for it caching functionality. I have an existing classic ASP application that I want to rewrite in ASP.NET MVC. However, I want to be able to do this "piecemeal" i.e. a few pages at a time. The problem is session state between the ASP and ASP.Net MVC application. I could use a database but ...

Can I use .NET with classic ASP?

Due to a customer requirement I am forced to use classic ASP, so I am wondering if I could use .Net (or maybe JScript which as new features) to try to add some advanced features. I really would like a decent way to connect to SQL Server, so if anyone has any ideas I would appreciate it. Thanks. Wade Update: Amazingly the customer re...

CDO.Message.1 error '80070005' Access is denied.

I am getting this error when I try to send via the local server CDO.Message.1 error '80070005' Access is denied. /mail.asp, line xxx Here is the code I am using MailBodyText = "TEST" Set objNewMail = CreateObject("CDO.Message") objNewMail.To = sSendTo objNewMail.From = "[email protected]" objNewMail.Cc = "webmaster...

Setting HTTPONLY for Classic Asp Session Cookie

Hello all, Does anyone know exactly how to set HTTPONLY on classic ASP session cookies? This is the final thing that's been flagged in a vulnerability scan and needs fixing ASAP, so any help is appreciated. ~~~A LITTLE MORE INFORMATION ON MY PROBLEM~~~ Can anyone please help me with this? I need to know how to set HTTPONLY on the AS...

writing output to a dropdown list

<% dim req_id req_id=Request.Form("Req_id") Set conn=server.CreateObject("adodb.connection") conn.Open session("Psrconnect") Set rs=CreateObject("Adodb.Recordset") rs.Open "select * from releases where project like '%"&req_id&"%'", conn %> <SELECT style="LEFT: 454px; WIDTH: 500px; TOP: 413px" name="txtrelease1" id="txtrelease1"> <% ...

Forms authentication for classic ASP on IIS 7.0

Hello, I am trying to integrate ASP.NET Security with Classic ASP. Like in next article - http://weblogs.asp.net/scottgu/archive/2007/03/04/tip-trick-integrating-asp-net-security-with-classic-asp-and-non-asp-net-urls.aspx, but I have IIS 7.0 instead of IIS 6.0 as in example. You can find my configuration file below (after adding of wil...

response.redirect to classic asp failing {Unable to evaluate expression because the code is optimized or a native frame is on top of the call stack.}

I have the following code pasted below. For some reason, the response.redirect seems to be failing and it is maxing out the cpu on my server and just doesn't do anything. The .net code uploads the file fine, but does not redirect to the asp page to do the processing. I know this is absolute rubbish why would you have .net code redirec...

ASP Mail Error: The event class for this subscription is in an invalid partition

I have some ASP code that I've "inherited" from my predecessor (no, it's not an option to update it at this time...It would take an act of not only Congress, but every other foreign country too) and I'm having an issue sending mail on one of the pages. It is an almost identical code snippet from the other page, but this one throws an er...

Server.Execute - render .ASP from MVC controller action

I need to render an ASP page to a string from an MVC controller action. I can use Server.Execute() to render a .aspx page, but not a .asp page. Here's what I'm using: public ActionResult Index() { Server.Execute("/default.asp"); return new EmptyResult(); } which returns `No http handler was found for re...

For...Next Loop Multiplication Table to Start on 0

I have my For...Next loop with a multiplication table working just fine, but I want the top left box to start at 0 and move on from there. Giving me some trouble. dim mult mult = "<table width = ""100%"" border= ""1"" >" For row = 1 to 50 mult = mult & "<tr align = ""center"" >" For col= 1 to 20 mult = mult & "<td>"...

Executing exe from asp page

i have an exe file that does some pdf processing. i would like to call this exe within an asp page and i want the asp page to wait until the exe has completed processing. any solution? thanks -Vivek ...

How to parse Json object in ASP classic passed from jQuery

Using a jQuery dialog, on clicking OK I call $.post( "save.asp", { id: 1, value: "abcxyz" } ); to pass the values to my ASP classic file that will update the database. I don't need a return value (unless it fails). I'm a relative noob to jQuery, so I'm assuming I'm using JSON to pass the values to the ASP file. I just don't know what to...

asp fpdf trying to output a image assigned to a variable

this is the code i used to display image in the header. the problem i have is i want to use a variable for the image, when i put the variable name instead of the image name i get an error: Microsoft JScript runtime error '800a138f' 'undefined' is null or not an object /EKtestdb/fpdf/fpdf/includes/Basics.asp, line 121 this.Header...

ASP error 424 Object required

I've got a problem with the following code pasted below, the problem seems to be coming from the openastextstream this carries on from another question: Set str_text_stream = obj_file.OpenAsTextStream(ForReading, TristateUseDefault) response.Write "<table>" int_j = 0 int_x = 0 Err.number = 0 Do While Not str_text_stream.AtEndOfStream ...

Loop through resultset and add create comma seprated string in ASP Classic

Here's my ASP Classic: set irs = recordset(sql,PageDB) if not irs.eof then dim new_list new_list = "" do while not irs.eof 'Add irs("name") to new_list and seperate by comma irs.movenext loop end if kill(irs) How would I add irs(name) to new_list ...

entering data in sql database through asp

pass=session("password") Set objIns=server.CreateObject("adodb.connection") objIns.Open session("Psrconnect") inspass="Insert into passwords(pass) values ('&pass&')" objIns.Execute(inspass) i dont know what should be the syntax to pass the value stored in the variable. with this syntax, the value entered in the database is &pass&. can...