asp-classic

How to go about writing this classic asp in asp.net

I am stuck in converting this snipped to asp.net. set RSLinksCat = conn.Execute("select linkscat.id, linkscat.category from linkscat, contentlinks, links where contentlinks.linksid = links.id and contentlinks.contentid = " & contentid & " and links.linkscatid = linkscat.id order by linkscat.category") <%if not RSLinksCat.EOF then%><h...

Classic ASP Site Throwing Date Conversion Error After Moving Servers?

I am moving an old store from a Win2003 IIS6 server to a Win2008 IIS7 server, moved everything across including database. The front end seems to work just fine, but when I login it has to do pull in data based on date ranges and now from no where I am getting this error? The conversion of a varchar data type to a datetime data type resu...

ASP Classic page quit working

I've had a set of legacy pages running on my IIS7 server for at least a year. Sometime last week something changed and now this line: Response.Write CStr(myRS(0).name) & "=" & Cstr(myRS(0).value) which used to return nothing more exciting than the string: 'Updated=true' (the sproc processing input params, stores them to a table, check...

Classic asp problem

Hello, I have this problem with my .Asp file. I get an error saying 'GetFrontpageInfo' is undefined. This is the code: http://www.kollelbaaleibatim.com/Content_of_asp_file.txt click "view source" to see the code. TY ...

Is it possible to maintain the url while redirecting to a classic asp page from a controller?

While migrating a site from a classic asp to MVC, I'm having the problem that not all controllers are implemented yet. For those which are not implemented, I'd like to serve the classic asp page (say /product.asp?id=123) while maintaining the nice url /product/123. To accomplish this I implemented a dummy ProductController which returns ...

Calling Server.Execute on .NET .aspx page from classic ASP page

Is it possible to call Server.Execute with a .NET .aspx page from classic ASP? My tests so far have indicated this is not working but I'm still somewhat convinced there is a way. ...

Is there a way to easily serialize form input into xml or yaml for database storage?

I am dealing with an old app in asp classic vbscript. I'd like to store the input of a form in a database text field as the form fields are a subject to frequent change and I don't feel like normalizing the old database. Any solutions for serialization in vbscript? Thank you! ...

How to find ordinal position of an element in XML using VBScript & XPATH

I have an XML like this <?xml version="1.0" encoding="UTF-8"?> <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">1</int> <lst name="params"> <str name="start">num</str> <str name="fl">string</str> <str name="q">string</str> <str name="rows">num</str> <...

Get ASP within .html files to render on IIS Windows XP

I have IIS running under Windows XP. I have .html files with classic ASP content in them. How do I get the ASP within these .html files to render properly? ...

Security Token/Cross Domain Cookie in Classic ASP?

I have an interesting conundrum. We have a site that is a completely separate domain, we'll say http://www.x.com and our own site that is http://www.y.com. The y.com site is actually a classic ASP site, and we aren't converting it to .NET at this time. The problem is that there is a link on x.com that redirects to y.com from a members...

ASP Classic, SQL 2008, XML Output, and DSN vs DSN-Less Produces Chinese Letters

I've been having a problem for the past month and can't seem to figure out what is wrong. Here's the setup and a little background. Background: I have a web-host who was running my website on Windows Server 2003 and SQL Server 2000. One of my webpages returned a result set from a stored procedure from the SQL server as xml. Below is th...

Conditional includes in Classic ASP - where the file may not exist on the server

I am currently in a situation where I have to make some additions to an application written in classic ASP using server-side JScript on IIS. The additions that I need to make involve adding a series of includes to the server-side code to extend the application's capabilities. However, the inc files may not exist on the server in all cas...

in visual studio 2008, when I stop debugging an asp classic website visual studio always crashes

We are running visual studio 2008 (with the service pack) and having troubles when we are debugging an asp classic website. The server is windows 2003 sp2. We are using windows authentication. We have a virtual directory that is an asp.net web application. We can attach to the w3p process and debug just fine. breakpoints work, we ca...

databind a DropDownList control with a list of all sub directories that exist in a particular directory on the server

I am wanting to databind a DropDownList control with a list of all sub directories that exist in a particular directory on the server. The directory I want to search is in the root of the application. I am fairly new to programming and I'm not sure where to even start. I found this code on a website: Dim root As String = "C;\" ...

Pass windows authentication username to asp variable

Hi, I have a site that processes orders taken by phone into a SQL database. Access to the portal uses Windows Authentication and I would like to pass the username of the order processor along with the order so that I can record who has taken the order. How can I pass the user name to a form element? The pages are written in classic as...

Execute Stored Procedure from Classic ASP

For some fantastic reason I find myself debugging a problem in a Classic ASP page (at least 10 years of my life lost in the last 2 days). I'm trying to execute a stored procedure which contains some OUT parameters. The problem is that one of the OUT parameters is not being populated when the stored procedure returns. I can execute the...

fill form via popup

Hi, I have a form and some fields on the form want to be filled via a popup. My popup basically contains 3 text boxes. After clicking submit on the popup how can i transfer the values of the text boxes to the main form? Any ideas? Thanks, ...

Integrating ASP.NET MVC 2 with classic ASP

I'm in the process of moving a large classic ASP application to ASP.NET MVC 2. Questions: My question is about project organization. I would prefer to not mix the MVC code with the ASP code in the same VS project. I'd like to have an MVC WAP with areas that match the parts of the website that I'm migrating. For instance, the old site ...

Reordering columns (fields) in a ADO Recordset

I have a classic asp webpage written in vbscript that outputs the results from a third-party stored procedure. My user wants the page to display the columns of data in a different order than they come in from the database. Is there an easy and safe way to re-order the columns in an ADO recordset? I did not write this page and cannot ch...

Is it possible to submit data into a SQL database, wait for that to finish, and then return the ID generated from SQL, using Classic ASP?

I have an ASP form that needs to submit data to two different systems. First the data needs to go into an MS SQL database, which will get an ID. I then need to submit all that form data to an external system, along with that ID. Pretty much everything in the code works just fine, the data goes into the database, and the data will go to...