Hi All
My Layout is as follows:
Master Page (ScriptManager)
Content Page
DropDownList
RadDock
asp:Panel
UserControl (ascx)
iFrame (ifmExcel)
RadGrid
We have ajax settings so that the dropdownlist refreshes the user controls. We would like to maintain this.
The way I got the export to work with a REPEATER was using :
System.IO.
StringWriter stringWrite = new System.IO.StringWriter();
System.Web.UI.
HtmlTextWriter htmlWrite = new HtmlTextWriter(stringWrite);
myRepeater.RenderControl(htmlWrite);
Session[
"ExportBody"] = stringWrite.ToString();
ifmExcel.Attributes.Add(
"src", "GenerateDownload.aspx");
The GenerateDownload would process the body and response.write as normal.
Is there something similiar we can do for the radgrid to have it loaded in an iframe or what's the best way to go about exporting the data?
I saw the render control for the rad grid, but if we can get it to use the export settings for the binary format in this setup that would be ideal.
Thanks in advanced.