I have a webpage that has a RadGrid on it and when the page is opened I create an excel attachment using memory stream and send it in an email, then close the window.
This all works great, I even don't show a prompt to close the window.
I firmly beleive it has to do with this setting, OpenInNewWindow. But when I do that
However, at the bottom of the page there is a dialog to Open, Save or Cancel.
How can I disable this prompt?
I have attached images from IE 9 and FireFox 11.
One trick I have seen and it works is to simply create a new html page and have a Redirect to that page at the end of the export that only has a window.close() in the JavaScript.
This all works great, I even don't show a prompt to close the window.
I firmly beleive it has to do with this setting, OpenInNewWindow. But when I do that
RadGrid Grid1 = (RadGrid)Page.Master.FindControl("Main").FindControl("RadGrid1");
Grid1.ExportSettings.OpenInNewWindow = true;
However, at the bottom of the page there is a dialog to Open, Save or Cancel.
How can I disable this prompt?
I have attached images from IE 9 and FireFox 11.
One trick I have seen and it works is to simply create a new html page and have a Redirect to that page at the end of the export that only has a window.close() in the JavaScript.