Prompt "Save As" Dialog For Image

I'm trying to force save as dialogue using this code in download.asp..but
when it runs it prompts for download.asp to save or open.

code snippet (from aspfaq.com)

Response.ContentType = "application/x-unknown" ' arbitrary
fn = "wallpaper_1_1.jpg"
Response.write "<br>" & Server.MapPath("wallpaper") & "<br>"
FPath = Server.MapPath("wallpaper") & fn
Response.AddHeader "Content-Disposition","attachment; filename=" & fn

Set adoStream = CreateObject("ADODB.Stream")
adoStream.Open()
adoStream.Type = 1
adoStream.LoadFromFile(FPath)
Response.BinaryWrite adoStream.Read()
adoStream.Close
Set adoStream = Nothing

I want this page to prompt save image option, not page itself.

View Replies


ADVERTISEMENT

Save As Dialog

is there a avaialble code in asp.net...
that have a similar function to Save as Dialog

View Replies View Related

Save As Dialog Box

When users submit a Form with a SQL query, the resultset is retrieved from a MS-Access database table which is then exported to an MS-Excel worksheet. After the records get exported to MS-Excel, I want to give users the option to download the Excel file to their local machine.

In other words, when users click a download link, I want the Save As.. dialog box to pop-up so that users can save the Excel file to their local machine (note that I don't want users to view the Excel worksheet in their browser). This is how I tried it: Code:

View Replies View Related

Force Save As Dialog

Is there a way I can force a Save As dialog? I have a page with a bunch of files listed for download. Unfortunately, these files attempt to open directly in the browser. I need a way to force a Save As.

View Replies View Related

File Save As Dialog Box

i want to write an application in ASP,in this i want to generate an excel file,in which all records will save in that excel file as per i ve given the query after saving records in excel file ,immediately i should get save as dialog box so that i will save that file on my local drive.i don't want to save that file on web, whenever file gets created & records saved,it will show me save as dialog box.

View Replies View Related

Disabling Open/save Dialog In Word

In my application I am using Word to hold data out of a MS SQL Server 2000 database. On the clients PC's I am getting a open/save pop up dialog for opening MS- Word. How can I disable this pop- up and load Word without having this dialog? The clients pc are Windows XP/SP2 machines.

View Replies View Related

Save File Dialog Window From A Web Page

What is the appropriate control or code to pop a "save as" dialog window to
allow the user of a web page to save a document after they click on a link?
All of the CommonDialog controls obviously are to be used on WinForms, so not
sure how to accomplish this from an aspx page.

View Replies View Related

Communicate With A Forced "Save As" Dialog Box

I'm puzzled on a how to communicate with a forced "Save As" dialog box. Here's the scene, I've got this script that creates a fun little file on the web server then prompts the user to pick a local path to download the same file via "save as" box.

The problem is I can't seem to find a way to grab the results of the save dialog box and react accordingly. For instance, upon a hitting the "Cancel" button I need to perform action B, but if everything works as planned I'd like to perform action A. Is this possible? Can anyone point me in the right direction or build me a stronger wall?

View Replies View Related

Help Me Save An Image File?

Can someone please (i dont even know where to start on this as i am completely incapable of file or image functions at the moment) help me do this:

i want to write a script that will copy an image from an internet page, then save it in a folder with the speficied filename. The url link is like this :
http://ipaddressort/BufferingImage?ImageAdr=123456.

The image is captured by the webcam, of course I can view it in the browser by typing the url, but I want to save it without any popup window or right click, I want to do it in the script.

View Replies View Related

Save An Image File

Is it possible for asp/scripts to create and save it in an image format(gif, jpg)? Say a script that creates an arrow picture.

View Replies View Related

Resize The Image And Save

I have problem with resizing a picture and don't know what the problem with the following code:

dim fs
dim sourcefile
sourcefile = uploadsDirVar & filename
set fs=Server.CreateObject("Scripting.FileSystemObject")

'to access the data of the image
dim iwidth, iHeight
dim myImg

if fs.fileExists(sourcefile) then
set myImg = loadpicture(sourcefile)
iwidth = round(myImg.width / 26.4583)
iHeight = round(myImg.height / 26.4583)

if (iwidth > 250) then
iHeight = (iHeight * 250)/iwidth
iwidth = 250
end if

If (myImg.Width > iwidth) or (myImg.Height > iHeight) Then
If (myImg.Width / iwidth) > (myImg.Height / iHeight) Then
myImg.Resize iwidth, 0
Else
myImg.Resize 0, iHeight
End If
End If

myImg.WriteFile sourcefile
set myImg = nothing
end if

set fs=nothing


when i run it, the following error occur :

Object doesn't support this property or method: 'myImg.Resize'

View Replies View Related

Save Current ASP As An Image

Is there a way to save the client side opened asp page as a image file to the server side.That is take a screen shoot of the page and save it as a file preferrable html file or some image file and save it onto the server.

View Replies View Related

To Save ASP Rendered Table As An Image

I am trying to find a way to save/copy ASP/HTML generated tables on a webpage as images.
In other words, I want users to right click on a table and save it just like the way they would save an image.

Is there any way of programming this behavior without having the user ro download any software like ActiveX?

View Replies View Related

How To Save An Edited Image In The Database ?

I've problem on how to save an image file that has been edited into the database. Actually, i have to develop a webpage that can interact with the user where user can select an existing image in the database and customize the colour of the picture and also the background colour.

After editing the picture, i have problem to save the edited image in the database. For your info, we're using Flash MX 2004 to change the picture and background colour....

View Replies View Related

Save Remote Image To My Server

I would like to reference a remote image, such as http://www.mysite.com/pic.jpg and save it to a local folder such as c:pics . Can this be done with ASP? I have played with many image manipulation components and none of them perform this fuction.

View Replies View Related

Upload Image And Save Filename To Access Database

How do I upload images and save filename to Access database?

View Replies View Related

Prompt() Into Textbox

How do you get a javascript prompt() box to put whatever you enter into the prompt box into a text box. So for example you would be typing in a textbox and you would want to add a word in bold, so you click the a button, a prompt box appears and then you enter the word you want in bold and then click ok and it adds it into the box where the cursor is within the box with the tags <b> </b> .

View Replies View Related

Connecting Dos Prompt To An ASP Page

we are developing a system that we want to connect the Command Prompt to an ASP page simultaneously. like that on VB. can it be possible?

View Replies View Related

DOS Prompt Bad Command Or File Name

I don't know what I'm doing wrong. I called the folder "a"):

c:WINDOWS>a
egsvr32 GetURL.dll

and the answer was:

Bad command or file name

This is to register the component.

View Replies View Related

Prompt To Print Page

Is it possible to prompt the user to print an asp page? For example, in this instance, I have created a job logging and monitoring system. At the completion of the job, I would like the user to be prompted if they want to print the job. If they say yes then the page is printed.

View Replies View Related

Login Prompt Always Pops Up

everytime i access my localhost it always prompts me to enter my user name and password....is there a way for me to access my asp page which is mssql database driven with going thru this username and password thingy?

View Replies View Related

Determining Command Prompt Error

When I run the following code, i get an error:

80070002 corresponding to line18: wshell.run (name).

When I copy & paste this command to prompt it works fine. Have tried other simple commands such as ping as they work fine. Any idea what error number could be or how I could output the error the prompt might be giving. Code:

View Replies View Related

Basic Authentication No Prompt Login Box

I have a problem with basic authentication. I redirect a user from a page to another.
I don't want to get the NT prompt login, I want the user to be logged in automatically.
I want to send the username/password to the page.

I have read something about cookies and sending username/password through
the header.

With the new Windows Update 832894 it is no longer possible to use
http(s)://username:password@server/resource.ext

Is there any other way to redirect to another page and pass the username and
password.

View Replies View Related

Bring PROMPT() Information To Next Page

I have an ASP page that contains an A HREF tag. This will load a new page and carry some variables to the new page. What I want is that, whenever a person click the item,the prompt box comes up and ask "why are you not working item." Whatever the person types as the response, I want it to be also carried over to the new page and stored as a variable.

I think that JAVASCRIPT could achieve this, but I do not know how. Can anyone tell me the script that willl accomplish this? The information I have in the page itself is as follows:

<a href="somepage.asp?repp=<%=avariablefromthepage%>&pot=<%=anothervariable%>&wantfix=n" value="no" onClick=''whyNotDone();''>Not Done</a>

View Replies View Related

IIS Basic Authentication Login Prompt

IIS raises login dialog box prompt on browser for resources protected using basic authentication. That login prompt gives user 3 attempts to enter correct userid/password. IIS throw 401.1 error if third attempt fails. Does anyone know how to change this number of attempts. Is it possible or impossible to do ?

View Replies View Related

XMLHTTP To Prompt File Upload

I am trying to upload a file on my web server to another website using XMLHTTP. My code logs onto the other website automatically and navigates through about 4 pages to the file upload screen.

If I were trying to post regular form data to the site it would work fine, but I have to some how mimic the <input type="file"> box and enctype="multipart/form-data" parameter of the form within the XMLHTTP post. I know I have to turn the file and other form data on my server into a binary stream and send it to the receiving website.

View Replies View Related

Auth_user :: Get Username From Windows Showing Prompt Box?

I use auth_user for get username from windows, when I upload that page on server and user open the page that contain this code ,it shows a prompt window and wants username and password ,it's common or it must get automatically from windows?

View Replies View Related

Dialog Box(ASP)

I have a ASP Page that allow the users to Download a File @ the Click of the button the File Download Dialog Box will pop up on the Scream ,on the download dialog Box are 4 buttons namely Open ,Save,Cancel and More Info ,How do I disable any Button on the Dialog box let say the Save button

View Replies View Related

Dialog Box

I would like to use make the dialog box to pop up when user forget to fill in the text field. Is it possible to do it by using asp? or it must use other language? May I know how to do it?

View Replies View Related

Modal Web-dialog

I would have liked to submit a form from a modal web dialog, i.e. a window
opened using showModalDialog() in which there is a form to submit. I thought the
dialog content would be replaced with the submitted page results but I saw a new
instance of MSIE instead.
Is this behaviour normal (I mean expected)? (How) can I replace a web dialog
content with submission page (i.e. the url in the form "action" attribute)
results?

View Replies View Related

Confirm Dialog Box

I have a webform with 3 text boxes and a submit button
Based on the first textbox data I'm filling up the remaining two. If the first box data is not found in the database I want to display a confirm dialog box. I need to know the return value from this confirm dialog as I have to clear the other fields in the form, if the user hits yes the I should retain the values in the other fields. I have tried hours on it by using hidden variables...but still couldnt get it to work.

View Replies View Related

Login Dialog

I have a web page named downloads.asp and I have a link on the page as "Click Here to login". When anyone clicks on that link I want that a classic windows login dialog opens up like the one in the link . I also have a database which is in MS-Access. How will i connect the dialog box with the access table. how can I code it, in javascript or in asp .

View Replies View Related

Saveas Dialog Box

i am writing the database data to a text file. now i want to invoke a save/saveas dialog box if the user clicks the download button. may i know how to do this in ASP.

View Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved