asp

TABS.Upload question in classic ASP

I can't find any documentation about it except the examples. I'm trying to use their server side uploading component and I would like to save a file with another. There is no SaveAs function. What do I do? ...

Can list files within directory, but want to list files within all directories

I have this script to display all the files within the directory the script is in, but I will have a directory that will contain multiple folders, with documents in each. What I envision is a webpage that dynamically lists all the folders, by its name, then when you click it, it displays the list of files linked. I want to do this, bec...

In ASP - Why is it that I can call python functions from vbscript but not vice-versa?

I'm planning on writting some new code for a legacy ASP application in Python, and I ran into some odd behavior. If I write a function in python I can easily call it from a VBScript block. However, if I try to call a function defined in VBScript from python, I get an error: Python ActiveX Scripting Engine error '80020009' Traceback (...

ASP Question - How to count # of characters?

Today is the very first day I've ever even seen aspx, so, please bear with me... Basically, I want to determine if a string is empty. If it is empty, then I don't want anything to output, if it's not, then I want to output the string itself. <%= o_handler.renderDDesc()%> //This is the string itself... If this is empty, then I want ...

Hosting asp page on linux server

Hi, Is it possible to host an asp page on a linux server ? ...

Need help with not displaying folders that do not contain anything

I have the following code that displays all folders and files within each folder. The script is within the /intranets/fs/course_outlines/ folder -> default.asp All the folders that this script is looking at are within the /intranets/fs/course_outlines/documents folder Within the script below, it prints the "documents" folder and I am ...

Pass Parameter to show extra text on page

Basically I want to pass a parameter to show Chinese translation of text if they select (schn=1)Show Chinese = true if not don't show it. What would the code look like? ...

asp - Cannot find method 'IsNullOrEmpty(String)' in 'String'

Trying to only print if a string isn't empty, and am using the code below, but it keeps coming up with that error... <%if(!String.IsNullOrEmpty(o_handler.renderDesc())) { %> <strong>Description:</strong><BR> <HR SIZE="1"> <strong><%= o_handler.renderDesc()%></stro...

ASP MVC on IIS6

In our asp mvc application, we are using embedded views, images and css files. On deploying on IIS6, the views are being rendered but we are having problem with the images and css files. We are getting 404 not found error. The same application on UltiDev Cassini Web Server is working fine. The problem seems to be with IIS6. Any kind of ...

ASP - running in localhost - unable to reach internet

I have an ASP MVC controller action. I'm trying to make a web request public ActionResult Index() { WebRequest request = HttpWebRequest.Create("http://www.some-internet-address.com"); WebResponse response = request.GetResponse(); string str = response.ToString(); }` I get a "WebException occured" the remote name could not be...

Printing from asp classic to Star Printers?

I am working on a site that prints receipts to Star printers. Right now we are using ActiveX controls to do this (ASPPrinter from VBGold). Is there any better way to print to these things from a website? We were thinking about having a program that polls a web service for print jobs, but that seems iffy and a little kludgie. That said...

Cannot get IIS pickup directory

Hi, I’ve been using the Smtp server 127.0.0.1 .The error I get: System.Net.Mail.SmtpException: Cannot get IIS pickup directory.at System.Net.Mail.IisPickupDirectory.GetPickupDirectory(). This Error occured ,when Email send from ASP web page.But EMail send from ASP.NET page,error is not occurred. Plz help . ...

IE empty image = red cross :-/

when my image is empty IE draws it like a red cross. Is there any way to avoid drawing red cross ? or as I've got asp Image I can make it invisible, but then I need to check if this image contains something or not. <asp:Image ID="Image1" runat="server" ImageUrl="Handler.ashx"/> I need to load into byte[] x = { ??? }; an white pixel i...

asp to php translator

hi, I am looking for some asp to php translator. I tried http://www.design215.com/toolbox/translator/ it is totally buggy. please suggest me good think. Thanks in advance. ...

How to manage a printers queue through a asp.net application?

I need to be able to print a bunch of documents in a sequence through my web app. How do i send these documents to the printer ? The documents are stored on a ftp server. Thanks. ...

string incorrectly translated by ado

I have a database with collation SQL_Latin1_General_CP1_CI_AS. In that database I have a varchar field. There is a row in that database with the string "ó" (single character 243 in codepage 1252). I have a simple ASP page that sets the codepage to 65001, reads that row (using adodb), and sends it out to the browser. Everything works ...

How to execute JavaScript writen in one page from another page?

How do I execute JavaScript written in one aspx page from another aspx page? ...

how to execute javascript of one page on click in another page

The thing is I have a page A.aspx there is script in that which will create a tab. from A I'm opening another page B.aspx . What I want is when I click a button in B.aspx . The script in A.aspx should execute . or else the link in A.aspx which call that script should execute .. ...

Apache's ErrorDocument directive for asp/IIS ?

now i saw a very good php script and i rewrite it to asp the script here:Fantastic Animation PHP/CSS/jQuery Error pages but know iam in big problem how i can use .htaccess in asp see how it work ErrorDocument 500 /error.php?code=500 can i use .htaccess in asp please tell me because iam newbie in it because know i convery error.php to ...

ASP HttpWebRequest and Redirect

OK, I have a client doing a POST to a server with some data. The server receives the post, and answers with a redirect. The problem is that the client does not redirects. Also, I've tried to check the StatusCode of the response the client gets, and it is always the same "OK". Instead of the redirect code. What am I missing? In the clien...