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.
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.
i have a table...with th e subject notes that has been uploaded using my system..now i would like to display all the subject notes that has been uploaded in a upload table...
and let the user to choose/click on it to save it to a certain directory(sumthing like dowloading the notes)..but i dont know how to display th save as window when the user clicked on the subject.
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:
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.
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.
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp. Any workarounds to my problems??
I want to post the form data (http://server/page1.asp) to a modal dialog window (http://server/modaldialog.asp) with a desired height 200px by width 200px.
Here's my attempts and problems:
Attempt #1) In http://server/page1.asp, it has code <form action="http://server/modaldialog.asp" method="post" target="_blank">
In http://server/modaldialog.asp, it has code <body onBlur = "self.focus()">
It can produce modal dialog window modaldialog.asp, but I want to set the width and height of modaldialog.asp.
Attempt #2) var sReturn = window.showModalDialog("modaldialog.asp", params, "dialogHeight:200px; dialogWidth:200px;");
This is the effect I want. But this is not posting the form data to modaldialog.asp.
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?
i am having a problem in how to create a Open File dialog to enable user to select a image file that will be stored into database. i just want the file path to be stored in database, not the image.
I want to get dialog box(open,save,cancel) for pdf file using asp(vbscript). Presently when i click on pdf link on the site,the pdf document opens in the browser.
I have used the below code(download.asp?file=filename):
I have coded a file upload process in ASP and the current way I allow files to be downloaded, which have been uploaded is by using the <a href> tag. This works but it normally opens the files for the user in a new browser window. What I would like to do is present the user with a download link which opens the Windows File Download dialog box. I thought there might be an easy way to do this kind of like HTML provides for uploading a file… which is the input type=file (presents the user with the browse button). Is there an easy way to present the user with a Windows File Download dialog box?
Now the it works fine in ie5.5 sp2 but no ie5.5 sp1 it prompts the user twice the open dialog box.
i found on microsoft site that it bug in ie 5.5 sp1 and it says to upgrade to sp2.
but my users are not willing to ugrade there ie. can you please help me out how can work this in ie5.5 sp1 or anyu other way to force a file download...
I created a web page from Excel2000, using "Save as web page..."...Publish function. then, I moved htm file to my IIS web server. Then I added a form control, and submit button.
How can get the data on the excel file using ASP from server side? For example, the value of Cell(1,2), Cell(2,3)....
I have an asp page, which displays graphical images.I am using Flipper graph in my application.
There is a link in the asp page "Click to view Image file",On clicking on this link,The graphical image need to be stored(Preferably in the server machine) and has to be opened in a new browser window.
To explain in detail. On clicking of that link"Click to view Image file" a function is called which does the following
1)Save the image file(.gif file) on the server machine Graph.ImagetoGif("Location to be saved",100,200); 2) Opens the image on a new browser window.
window.open('from location from where the image is to be retreived',100,some more properties) So i need the image file to be saved in the server and retreived from the server.
I would like to save a web page to a file. When I do that, sometimes the saved web page does not look like the original web page. For example, when I save www.msn.com, it looks very different the original page. How can I save the web page to look like the original (as if I do "File" - "Save As" and under "Save as Type" select "Web Page, complete (*.htm,*.html)" ? This is how I save the web page: Set fs = CreateObject("Scripting.FileSystemObject") Set filePtr = fs.CreateTextFile("c:abc.htm", True) filePtr.WriteLine (WebBrowser1.Document.body.innerHTML)
I have an ASP page where an applicant would keyin his details. Nothing but his resume on line. My problem is that we have a large text wherein the candidate will paste his entire resume for reference. Once he submits it, while viewing if we copy and paste the text to word, the alignment is not there at all.
Could anyone suggest some option to attach the resume and store it in the database and then downloading the resume as it is. Could anyone help me out on this as soon as possible.
is there an easy way to save the current page in asp through code. for example if I dynamically created a page and then wanted to save it without requiring the user to do anything.
I want to be able to save a file created by an asp file somewhere. Or even email the file if possible. I've searched google extensively and only found people with the same problem but no answer. He solved the problem but didnt post the solution.
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.
How the heck would I go about saving an object to file? Put would be perfect, and can basically save everything except objects - how do I save an object if I can't use put?
I want to loop through a recordset and save each records contents as text files and then zip all the text files and promt user to download the zip --- can this be done?? Does anyone have any code?
I am creating csv file by doing following. So when asp page get load this code run and it create csv file and store in specified location.
How can i open this store file in same window after it get created. I have a name and location of file "whichfn" how can i open into excel format. Code:
After a user make the search, it returns 100 rows of record on the display page. I want to give an option for the user to save the records as Excel spreadsheet. Like a small icon on the corner, it prompts to save if click.Can anyone teach me how to do it? or have a simple tutorial or code that i can see?