Все вопросы: [asp-classic]

856 вопросов

5
голосов
3ответов
399 просмотров

Dictionary/Client VS Application Variables

Hi i got a question about my server performance ... i got a classic asp cms hosting ~250 websites, for each website we build a Classic ASP dictionary using set dict = CreateObject("Scripting.Dictionary") dict.add "test1","Value Test1" dict.add "test2","Value Test2" dict.add "test3","Value Test...

2
голосов
3ответов
1219 просмотров

Connection string error

Having a problem with IIS on Windows Server 2003 (using a classic ASP web application) The database server (SQL Server 2005) is on the same machine. I create a recordset, and set its activeconnection as follows: Dim RS Set RS = Server.CreateObject("ADODB.Recordset") RS.ActiveConnection = "Provi...

0
голосов
3ответов
4229 просмотров

Classic ASP Parameters passing nulls (or empty parms) and ordering

I'm using classic ASP and trying to create parameters for a stored procedure call for a procedure that has optional (=NULL) parameters. One of the parameters, @maxrows, is required. When I try to pass via the following call: With objCommand .ActiveConnection = oConn .CommandText = "usp_client_o...

0
голосов
1ответов
919 просмотров

Classic ASP "ExecuteGlobal" statement acting differently on two servers

I have a strange problem that I don't really know how to handle. In addition to developing a new ASP.NET site, I have to support the old "Classic ASP" site. It's written in VBScript with a batch of Javascript functions as well. Many of the Javascript functions are in 'include files'. Debuggin...

0
голосов
1ответов
400 просмотров

Server Error : The server closed the connection while reading the response

I have windows xp and iis installed , when I want to access localhost to view asp pages , I get the following error : Server Error The following error occurred: [code=SERVER_RESPONSE_CLOSE] The server closed the connection while reading the response. Contact your system administrator. Please co...

0
голосов
3ответов
1200 просмотров

Split a string in ASP Javascript

I am trying to split a string from a recordset that is in the format DD/MM/YYYY. So basically something like: Homework.Fields.Item("DateDue").Value.split("/") But that doesn't work, Normally I can do: String(Homework.Fields.Item("DateDue").Value).split("/") But using String() turns the val...

0
голосов
2ответов
1385 просмотров

Changing the page layout using Office Web Components

I am using Office Web components to fill an Excel template with values. The template is in Excel xml format, containing all relevant fields and layout options including the page layout, landscape in this case. I'm filling this template with some real fields using the code below. Set objSpreadshe...

0
голосов
3ответов
929 просмотров

Json "Parser Error" from server to client

I use an asp (classic) utility file to create json objects from an SQL database, see: http://code.google.com/p/aspjson/ here is what I get from the server side: {"results":[{"Opt_Name":"BARR","Opt_FirstName":"TomTest","Comp_Name":"My_Company"}]} Which is valid json, at least valid for jsonlin...

7
голосов
5ответов
4601 просмотров

Ajax chat polling bandwidth efficiency

I've written a small web application which is basically a JQuery powered chat client within the browser, to get the posts I'm polling the server with an AJAX request and then appending any new replies, I'm worried about making this as efficient as possible while not losing the realtime feel. htt...

1
голосов
2ответов
743 просмотров

Redirect all HTTP-Requests with *.asp to one single file

Is it possible on an IIS to redirect all files with the file extension .asp to one single file (i.e. switch.php, switch.cfm) and how? Thx in advance for the upcoming solutions :) EDIT: version of IIS is "IIS 6.0"

6
голосов
3ответов
14738 просмотров

Mapping classic asp pages to .net in IIS

I'm trying to map requests for classic asp pages to be handled by .net, so that it runs through a custom httpmodule. In IIS I have remapped asp requests to aspnet_isapi.dll - I'm sure I've done this bit right Now in my test app I am getting this error: Server Error in '/TestASPRedirect' Applic...

0
голосов
3ответов
329 просмотров

strange Encoding issue

i have a contact form sending itself to me by email using ASP classic, CDO.message. thing is, that it has hebrew characters and i encoded it UTF-8. but when sending to my email i get ??????? instead of hebrew. i copied the exact files handeling this form to another FTP i have, and BOOM! it work...

1
голосов
3ответов
30122 просмотров

How to connect to a sql database using classic asp?

Could someone please help solve this problem?

0
голосов
1ответов
220 просмотров

sending a charset in the Content-Type header

i use jquery $ajax to post a contact form to my email. but encoding is wrong and i see question marks. i figured i should set the content-type but cant manage to do so. am using asp thx

4
голосов
1ответов
1211 просмотров

Can asp.net HttpModule forward requests to the asp.dll?

What I'm trying to achieve: Intercept requests for .asp files using an asp.net application then re-write the url to something search engine friendly then pass the request onto the asp.dll to handle the request. How Im trying to acheive it: I'm trying to get intelligencia url re-writing working...

1
голосов
1ответов
440 просмотров

Pass MVC form post data to an asp page

We are doing a old section reskin which is written in classical asp and it is being remade in Asp.net MVC. Content of some of the pages just needs to be pulled into a new layout. So I have written a helper method that basically reads asp file and renders contents in the current view. public stat...

0
голосов
4ответов
1138 просмотров

can i use visual studio 2008 for a regular asp project

i have taken over an asp project from a friend and he was basically just using notepad++ to develop. I would like to use visual studio 2008 but there is no project file or solution file at this point, just a bunch of asp pages and some images, css the other trick is that he will still be develo...

0
голосов
1ответов
417 просмотров

Excel formatting question, default line color

What is the default line setting in an Excel spreadsheet? You know, the line that goes around the cell? Color? Line thickness? Transparency? I am creating a workbook using asp and html and want to format the lines so that it looks like the default settings. Many thanks, R

1
голосов
2ответов
122 просмотров

Compiled ASP.NET App Doesn't Parse Classic ASP

If I shove our intranet app live and let it be compiled on the fly without compiling it beforehand it works fine. If I publish the site by compiling it first using VS's built in publishing feature then every page works fine except for the classic ASP pages. Anyone know why this would happen? We...

0
голосов
1ответов
228 просмотров

PivotTable Drillthrough not supported

We migrated our old ASP app to ASP.NET and can't seem to figure out the cause of this error. Webpage error details User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.04506.648; .NET CLR 3.5.21022; InfoPath.2; .NET ...

1
голосов
2ответов
1905 просмотров

Youtube XML ASP classic problem

Using the following code: <% Option Explicit Response.Buffer = True Dim videoVimeo : videoVimeo = "http://vimeo.com/5866977" Dim videoYoutube : videoYoutube = "http://www.youtube.com/watch?v=d8nxjUlbKJA" videoYoutube = Replace(videoYoutube,"http://www.youtube.com/watc...

0
голосов
5ответов
1292 просмотров

Regex challenge: Match phrase only if outside of an <a href> tag</a>

I am working on improving our glossary functionality in a custom CMS that is running with classic ASP (ASP 3.0) on IIS with VBScript code. I am stumped on a regex challenge I cannot solve. Here is the current code: If InStr(ART_ArticleBody, "href") = False then sql="SELECT URL, Term, Re...

1
голосов
1ответов
187 просмотров

using intelligencia url re-writer in a classic asp webapp

I have a classic asp webapp that I need to implement url re-writing in. I've used the intelligencia url re-writer in an asp.net application before , so my current trail of thought is to create a new asp.net application, add the url re-writing component to it and then add the classic asp applicati...

0
голосов
3ответов
2455 просмотров

Does anyone use Fortify 360 with Classic ASP? a Header Manipulation vulnerability story

I'm on a short-term contracting gig, trying to patch some vulnerabilities in their legacy code. The application I'm working on is a combination of Classic ASP (VBScript) and .Net 2.0 (C#). One of the tools they have purchased is Fortify 360. Here is a current classic ASP page in the applicat...

2
голосов
2ответов
247 просмотров

Looking for direction on Classic ASP 2.0 Resources (coming from .NET)

I have a classic ASP 2.0 project coming up. I mostly do ASP.NET WebForms and more recently MVC. I did a little bit of ASP many years ago. Do you have any book recommendations? If I find a 3.0 book, would that confuse me too much? Any specific resource on the net for getting up to speed that ...

1
голосов
3ответов
1303 просмотров

Can we use ASP.Net Url Rewriting features in classical ASP

I am developing an application in classical ASP that now requires sef urls. I do not have any asp.net experience but I've heard that ASP.NET+IIS6 provide built-in url rewriting functionality. So before i have someone purchase a url rewriting component for me, I am wondering if it is possible to u...

0
голосов
2ответов
2930 просмотров

Reading POSTed binary data from classic asp

I need to read the binary data (a file that is uploaded) from a form that is posted to a classic asp page. I need to do this without using a component. How do you read the binary data for that specific file? Note that there could be other non binary fields that need to be read as well. (updated...

1
голосов
1ответов
414 просмотров

Not stopping at server side breakpoints whilst Debugging classic asp with Visual Studio 2005

The website is set up locally on my IIS 5.1 on xp. Application protection is set to low within IIS so the asp is run inside the inetinfo.exe process. I start debugging , attach to the inetinfo.exe process and refresh the page in the browser so the page reloads and reruns the server side code. No...

1
голосов
1ответов
6102 просмотров

MSXML2.XMLHTTP Request to validate entered URL in ASP Classic

Thanks in advance for any help received. I want to allow our client to enter a URL into a text field which then checks whether the URL exists and works. There are 3 possible outcomes I want to check for: A status of 200 - OK, A status of 500 - Server Error, Or a status of 404 - page not found. ...

1
голосов
3ответов
3679 просмотров

Why does Classic ASP Post a Multiple Select List with a space between values where ASP.Net doesn't?

I have an old Classic ASP code such as: &lt;html&gt; &lt;head&gt;&lt;/head&gt; &lt;body&gt; &lt;form action="test.asp" method="post" name="fname"&gt; &lt;select name="clients" size="3" multiple="multiple"&gt; &lt;option value="5311" selected="selected"&gt;5311&lt;/option&gt; &lt;op...