asp

.asp upload file error help.

Can the clsupload.asp directly replace the persits code? I am a total nubee to coding. tks... I inherited a website and discovered that they used a com object "persits upload. I do not want to purchase and install for one application. Can someone help to tell me where or how to change this below code to work without the software buy? S...

ASP.Net MVC RedirectToAction with anchor

Hi, I have the following problem: For example I have route like this: routes.Add(new Route("forums/thread/{threadOid}/last", new MvcRouteHandler()) Defaults = new RouteValueDictionary( new { controller = "Thread", action ="ShowThreadLastPostPage"}), Constrain...

Classic ASP always return code 200 in IIS7

Hi, I enabled tracing in IIS7. I set those properties to true in the ASP tab of the IIS management tool: appAllowClientDebug, appAllowDebugging, errorsToNTLog, scriptErrorSentToBrowser; To test it, I wrote a small classic ASP test page in wich I voluntary include a bug (bad activeX name). My asp test page is rendered until th...

ASP and ' does not work

I am not an ASP expert, just trying to help a friend. It the past, HTML,I use ' for apostrophes in text. Using the following it renders fine in Firefox but incorrect in IE 7. asp:LinkButton ID="AceFrehley95Button" Text="Ace Frehley ' 95" OnCommand="lbtnSubMenu_Command" CommandArgument="AceFrehley95.wmv" Runat="Server" In ...

Displaying Hebrew text in ASP

I am working on ASP application that reads data from sql server and displays it in a table. All my Hebrew text is replaced with "?????". I installed and Configured Hebrew Font in Regional options. I have set the appropriate Charset in Head,Meta tag I am able to see proper Hebrew text in sqlServer2005ManagementSudioExpress. I have prope...

Connect asp 2.0 page to VBscript on a remote server

I'm developing a website and I need to have my asp page connect to a VB script on a remote server send it some variables and get a string returned. Then spit out the returned data. I've done similar work in Java. Can anyone point me in the right direction to help me produce a simple proof of concept? ...

How to read debug info from IIS logs

I'm maintaining an old asp classic application. It uses Response.AppendToLog as its sole debug logging system. I only debug it on my localhost so the logging files are on my harddrive in the %SystemDrive%\inetpub\logs\LogFiles folder. I'm looking for a tail-like program that shows these debug messages live. Maybe with a possibility to ...

ASP (not .NET): sending null as parameter to stored procedure in query string?

I have the following code on an ASP page: <% QueryToJSON(conn, "execute WebGetEmployeesPlanned'" +Request.QueryString("customercode")+"', '"+Request.QueryString("lang")+"', '"+Request.QueryString("date")+"'").flush %> There is no other code on this page except some includes, as I call this page with ajax from another...

How can I get asp.net controls to generate W3c compliant html?

I recently ran some of my ASP pages through "HTML Tidy" validation and found that several warnings were generated due to HTML tags not being properly formed i.e. extra closing tags.On investigation it seems that the ASP Menu control which i am using as the left navigation bar is generating this invalid HTML. It seems that the HTML for th...

How do I fix a broken connection to DB2 from a web application?

I support some old web applications, VBScript-based ASP for the UI and VB6 COM modules for the business and data access layers. Last weekend, I installed DB2 Connect Enterprise Edition v8 fixpack 14 on several Windows 2000 servers, and one of the web apps errors out on null data when it calls the built in VBScript function FormatNumber....

Possible to dynamically add an asp:CheckBox control to a TableCell?

Hi everyone, In my .NET application I need to add a checkbox to each row in a dynamically created asp:Table. Is it possible to do that by dynamically creating an asp:CheckBox for each row and somehow put it inside a TableCell object? (In that case how?) Or do I need to replace the asp:table control with something else, like a Repeater ...

ASP: How to import data from a merged cell in Excel?

I need to import data from an excel file, but some field is a merged cell. How can I determine if a field is merged or not, and how many cells are merged together in that field? My code is like this: Dim Conn, DBPath ,Rs Set Conn = Server.CreateObject("ADODB.Connection") DBPath = "Driver={Microsoft Excel Driver (*.xls)}; DBQ=" & Ser...

VB6 web application - RM or Non-RM - does it really matter?

I'm supporting a legacy VB6 web application. We generally try to use Retained in Memory (RM) components. However, some components are "borrowed" from a Windows application. Since those components contain forms, they cannot be marked as RM. As a result, we currently have a mix of RM and non-RM components. The question has been raised...

Type mismatch on an Array assignment in ASP

Its been a while since I've worked with ASP, but I'm getting a Type mismatch error on what seems to be a simple assignment statement. Can anyone shed some light on why this might be happening. This works, but when I try to foreach an unassigned Questions block I get an Object not a collection error Class Survey public ID public Ti...

Upload file to SQL database using classic ASP

I am trying to upload files (.doc/.pdf) to a SQL database (2005) but I am really struggling to find any step by step guides. This is what happens on my ASP form: User selects a document Document is currently upload to a temp file and sent to a email address However it also needs to be stored within a database field. I have set the ...

Can't delete a cookie on test server

I am having a problem deleting a cookie on my test server. On my dev machine the cookie deletes fine. This is the request/response taken from fiddler. I'm trying to delete the .Hv2 cookie I've tried without setting the path part of the response cookie - no difference. This is a grab of how the cookie looks from FF. One difference I...

Best way to create a Map in Classic ASP

I'm currently rewriting some PHP 4 code to Classic ASP (don't ask) and trying to work out if there's a better way to load a large Map into memory than just hard coding each pair in. To give you an idea, there's around 300 unique key value pairs in the hashed array definition (or whatever it's called) in the PHP. I'm tempted to just do t...

"Type mismatch" error when calling a simple method in a c# assembly registered for COM interop

I've build a classlibrary using c# and the .net framework 3.5. In my class library there is a class called Utilities with two methods. public string Method1(int length) { } public string Method2(int length, string aStringParameter) { } Now I went and build a simple asp page calling my methods. Method1 work like a charm. Method2 cause...

How can I display my SSN id in the ASP web page with PCI standards

In my ASP web page I am displaying SSN number " name ="txtSSNID" size ="20"> The Fortify Developer tool detects this as error. How can I fix this issue. I need to display the SSN Number but the thing is it should not caught while testing in Fortify developer tool for security violations ...

Create Web project for ASP pages in Interdev

How to create a web project in Visual Interdev for ASP pages. I need to debug the ASP pages. ...