|
thanks Thank you all for your great help. Maybe I am not very clear.
It's like this: In the web application, I wrote a "download" button, when you click the button, you need to use the code to generate a dialog box to save the file, just like save, enter the file name and path in the dialog box, click ok will do. All I need is the file name and path entered by the user.
The question is: how to generate a save dialog with code? It seems that such a dialog box cannot be directly generated in .NET!
Suppose I want to write a saveas() function with a javascript script. This function can generate a "save file" dialog box. I save it as a saveas.js file. How can I embed this file in a C#.NET Web application? ? The event of my "download" button can directly call the saveas() function.
I included the file with <SCRIPT src="saveas.js" type="text/javascript"> </script> in the html source of the web program, and used the statement in the "download" event: this.Response.Write( "<script language ='javascript'>saveAs('saveas','download',true)</script>");, but there is still an error when calling: Missing object!
Please help! Thanks a lot! ! ! |
|