Code:
public void ExportAsXMLtoXLS(DataTable dt)
{
System.Data.DataTable dt = GetData();
dt.TableName = "Employees";
dt.WriteXml(Server.MapPath(".")+ @"\GenerateData.xls", XmlWriteMode.IgnoreSchema);
Response.Redirect("GenerateData.xls");
}
Sharing real-world experiences about C#, Dynamics CRM, Dynamics 365, Dynamics NAV/Business Central, SharePoint,PowerBI,ASP.net and more...
public void ExportAsXMLtoXLS(DataTable dt)
{
System.Data.DataTable dt = GetData();
dt.TableName = "Employees";
dt.WriteXml(Server.MapPath(".")+ @"\GenerateData.xls", XmlWriteMode.IgnoreSchema);
Response.Redirect("GenerateData.xls");
}
This error was occured because GET and POST are disabled by default in ASP.NET 2.0 and greater.Now I would like to share this with you. From msdn I have got some relative information which may help you to get understand clearly.
The ASP.NET AJAX server components basically consists of ASP.NET web server controls and components to manage UI and and flow of an application, and to manage serialization, validation, control extensibility.Exception: Method 'StartWorkflowOnListItem' in type 'Microsoft.SharePoint.WorkflowServices.FabricWorkflowInstanceProvider'...