We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

how to display a Save Dialogbox

Thread ID:





107990 Mar 27,2013 04:44 PM UTC May 20,2013 01:04 PM UTC ASP.NET Web Forms (Classic) 3
Tags: DiagramWebControl
Hayssam Hassan
Asked On March 27, 2013 04:44 PM UTC

Hi there,
i would like to know how can i open a SaveDialog in ASP.NET to save diagram local, not on the server
for saving diagram at server, i used

string AppPath = Server.MapPath(string.Empty);
DiagramWebControl1.SaveBinary(AppPath + @"\Test.xml");

Best Regards

Amsath Ali M [Syncfusion]
Replied On April 5, 2013 12:24 PM UTC

Hi Hayssam,


Thanks for using Syncfusion products.


Currently, it is not possible to save diagram in local using SaveFileDialog box because the SaveFileDialog belongs to the browser and is inaccessible to ASP.NET code for security reasons. However, you can save the diagram locally in ASP.NET temporary directory. Please refer the below code snippet to save the diagram in ASP.NET temporary directory.


For more information regarding the usage of saveFileDialog in ASP.NET, please visit the below links:





Here is the code:


DiagramWebControl1.SaveBinaryDocument(Path.GetTempPath() + "Diagram.edd");


Here is the sample:



Please let us know if you have any queries.



Amsath Ali. M

Hayssam Hassan
Replied On May 15, 2013 11:35 AM UTC

Hi Amsath,
thanks for your update,
i have some problems with my window-controller, after clicking the save button the window should close, but it doesnt. i dont know whats is wrong with code.

Hier is my code
protected void Save_btn_click(object sender, EventArgs e)
        // Saving diagram. 
        string AppPath = Server.MapPath(string.Empty);
        DiagramWebControl1.SaveBinaryDocument(AppPath + "\\" + tbSaveFileName.Text);
        // Saving diagram locally.
        string filepath = AppPath + "\\" + tbSaveFileName.Text;
        HttpContext.Current.Response.ContentType = "application/octet-stream";
         HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=" +                                                                                      tbSaveFileName.Text);

Amsath Ali M [Syncfusion]
Replied On May 20, 2013 01:04 PM UTC

Hi Hayssam,


Thanks for your update.


Since you have asked the same query  in the forum 108856, we have updated our response for your query in that forum (108856). Could you please refer that forum for better follow up?


Please let us know if you have any queries.



Amsath Ali. M


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon