Hi All,
I am running VS 2010 fw3.5, infragistics35 v11.1.
I am trying to add a quick export into excel for my customers through a button, everything compiles fine and when the data is chosen and the button clicked it looks like something will happen, but nothing ever happens.
Any ideas would help thanks.
protected void exportExcelLkBtn_Click1(object sender, EventArgs e) { Line line = new Line(); DataSet dsmor = new DataSet(); int revisionId = Convert.ToInt32(revisionDdl.SelectedValue.ToString()); int prevRevisionId = Convert.ToInt32(revisionDdl.SelectedValue.ToString()); string functionalAreaIds = faDdl.SelectedValue.ToString(); string partNum = partNumTxt.Text; string material = materialTxt.Text; string stepName = stepNameTxt.Text; string toolName = toolTxt.Text; string suppliers = suppliersTxt.Text; string gfmOwner = gfmOwnerTxt.Text; string tdContact = tdContactTxt.Text; dsmor = line.GetActiveLinesByRevId(revisionId, prevRevisionId, functionalAreaIds, partNum, material, stepName, toolName, suppliers, gfmOwner, tdContact,"EXCEL"); dataUwg.DataSource = dsmor.Tables[0]; dataUwg.DataBind(); UltraWebGridExcelExporter1.DownloadName = "Excel_Data.xls"; UltraWebGridExcelExporter1.Export(dataUwg); }
Oh I got it, there was a WebAsyncRefreshPanel on the page and when I moved the control outside the panel it worked fine.