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 Repliesi 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 RepliesI'm putting a website on a different server to what I normally use and I've had to adjust from Persits.Upload to Persits.Jpeg. I'm not sure what I'm doing here? My code works fine on the old server. Code:
View Replies View RelatedI 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 RelatedI 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 Relatedis there a avaialble code in asp.net...
that have a similar function to Save as 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?
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:
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.
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 RelatedI 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:
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 Relatedi 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 RelatedI 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.
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?
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.
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 !!
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???
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.
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 RelatedI'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.
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.
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)
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 RelatedSome 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?
i am using the following code to force a file download dialog in asp
Response.ContentType = "application/vnd.ms-excel"
response.AddHeader "content-disposition","attachment; filename=" &" &
StrFileName
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...
Anyone knows how to create the username/password authorization dialog in ASP?
View Replies View RelatedIn 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 RelatedWhat 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 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.
Any workarounds to my problems??
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.
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.
View Replies View RelatedI'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?