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
ADVERTISEMENT
is there a avaialble code in asp.net...
that have a similar function to Save as Dialog
View Replies
View Related
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
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
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
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
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
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
View Related
When IE file/new/window is used a new IE window is opened to the same session
as the original. Is there a way to force a new session?
View Replies
View Related
I am trying to develop a ASP based web system. My Database is MSSQL2000 and Server is IIS6(WINDOWS 2003). I am using a socket server to connect to my database. This socket server uses a special standard(defined by the socket server developer) of XML tags to communicate with the socket server. This socket server sents back a XML stream as the result from the database query.
My problem is that i want my asp app to communicate with the server to access the database rather than query the database directly. I cannot figure out how to do this kind of a mutitier application. I had a suggestion from my friend that ISAPI Filter would be of some help. But i am new to the concept of ISAPI so i have no idea on how to accomplish my task .
View Replies
View Related
I have a middle-tier written using Foxpro. I'd like this tier to communicate
(that is pass some variables to ASP). I defined a Session variable somewhere
in my ASP file, e.g. Session("Usercode") = Somevalue. Now somewhere else, I
want to change this value. I tried this:
UserSession = CREATEOBJECT('ASPTypeLibrary.Session')
UserSession.Contents("Usercode") = TheUsercode
However, it gives the error: ASPTypeLibrary.Session is not found. However,
VB's object browser lists this
View Replies
View Related
I have an asp code snippet which i've been using to force a download which works absolutely fine with .jpg, .gif and .pdf files, but for some reason will not work when i try and use it with a .mp3 file. In firefox it creates an empty file on your desktop but in explorer it causes a browser error. Code:
View Replies
View Related
I used to have thios bit of code and I have totally forgotton what is was. It set either an expiry for the page forcing the browser to download it from the server or it abandoned something. Anyway I want the page to always check its data and refresh from the server and not use the cache
View Replies
View Related
I wrote 2 ASP pages that communicate with JavaScript objects. page1.asp and
page2.asp are put in separate servers in separated machines. If I put in
single machine, it is fine. Now it has Runtime error: 'params.test' is null
or not an object. Any ideas?? Code:
View Replies
View Related
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
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
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
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
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
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
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):
<%
Response.AddHeader "content-disposition", "attachment; filename=" &
request.querystring("file")
Response.ContentType = "application/octet-stream"
%>
This file resides in the same dir of pdf documents Code:
View Replies
View Related
I have an ASP page to download a CSV file using the following code
Response.ContentType="text/plain
Response.AddHeader "Content-disposition", "attachment; filename=Report.csv
Response.Write strCS
When I run this, I get the download dialog displayed twice. Any ideas how to solve this.
View Replies
View Related
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?
View Replies
View Related
I have created one simple ActiveX control, in which i've added one dialog. Now I have just show that dialog (using domodal) at the startup of control, I mean in the InitInstance( ) function of the applicaltion.
how to show that dialog in IE. i.e. when that ActiveX control (.ocx) is called in IE using any html tag or using any scripting language, I dont want to popup that dialog instead that i want that dialog must be embedded in IE (i.e. in browser). I've created that ActiveX in vc++ 6.0. is this thing is possible ? if yes, then how ? and if not then please guide me to appropriate way.
View Replies
View Related
i have a recordset that displayed all the infos about a record and a delete herf or button
i want whenever i wanna delete a record a dialog box to appear with YES/NO/CANCEL button.
yes to confirm delete no to disagree and return to the previous page Cancel to cancel the action and remain in the same page !!
View Replies
View Related
I have a web app that converts files. The conversion can take up to 20
minutes depending on the file size and contents.
So, to help the user I want to display an animation (gif/avi/swf) while this
happens. (so that they don't assume it has stopped and go and submit the
file again!)
I have tried all sorts of options but cannot get any animation to play while
IE/NS is waiting for the asp script to process and post back.
anyone got any ideas???
View Replies
View Related
Can somebody loan me a lobe and give me a snippet of code that will:
a) Accept a file name (.xls extension)
b) Invoke the "Save as" dialog rather than displaying the Excel file in the browser.
View Replies
View Related
I am calling an exe thru' href, but when it executes, I get the message if I want to open the file(exe file). Is there any way I can suppress this from appearing and open the program?
View Replies
View Related
I've created a web application that requires authentication on all pages. One of my pages is an ASP script that runs in a modal web dialog. It has a form to upload a file. To prevent a new window from being spawned I've put an IFRAME as the target of the form submission:
<form action="Image.asp" method="post" enctype="multipart/form-data"
target="Results">
...
<input type="file" size="30" name="ImageFile">
...
</form>
<iframe src="about:blank" name="Results" frameborder="0"></iframe>
When I pick up a file from My Documents I get an authentication prompt as soon as I submit the form. I don't get that authentication prompt when I run the script in a normal window (i.e. in a non dialog window). If I select a file from anywhere beyond the wwwRoot folder I don't get the authentication prompt either.
Is it normal or is it a bug in MSIE? I would have sworn IIS had nothing to do with client-side file access when uploading files!
I'm running Windows XP SP1 with IE6 SP1.
View Replies
View Related
I have a web page that opens a modal dialog (client side) in the
following manner
onclick="window.showModalDialog('/dialog.asp',null,'dialogHeight: 200px;
dialogWidth: 400px; dialogTop: 300px; dialogLeft: 150px; edge: Sunken;
center: Yes; help: No; resizable: No; status: No;');">
and the page loads in the modal dialog no problem.
Now, the asp page is a form that submits to itself and so the modal dialog
contains a form that submits to itself.
This is fine except that submitting the form opens a new window.
what I would like to happen is submit the form and it comes back to display
itself in the modal dialog again. if the form processing detects an error I
will leave the form displayed, if no error is detected then I will close the
window using some client side javascript.
however I am having trouble getting the modal dialog form to submit back to
itself and redisplay again within the modal dialog.
View Replies
View Related
I am rather new at Web program so I am starting off with some small stuff, but still having problems. I want to display a message box to the user when they click a button, but the message box displays on the server and not on the client. Can anyone tell me what i am doing wrong?
The command for the message box is:
MessageBox.Show("The anniversary date has been changed for all employees",
"Anniversary Date", MessageBoxButtons.OK, MessageBoxIcon.Information,
MessageBoxDefaultButton.Button1, MessageBoxOptions.DefaultDesktopOnly)
View Replies
View Related
I have a problem with dialog boxes. When in Windows XP, the dialog boxes are too small, but when in other environments it is ok. What should I do to accomodate all environments?
View Replies
View Related
Some users of my ASP app keep getting a login dialog for no apparent reason when they first use the application. They're using Internet Explorer clients and the web site's access control is set to NTLM authentication. I've set read access onthe server directory containing the ASP pages to the [Authenticated Users] group.
Is there something I'm missing or is this a known issue perhaps caused by a recent security patch?
View Replies
View Related