public void searchReleases(int applicationId, int allReleases) { Releases releases = new Releases(); List<ApplicationModel> releaseModelsList = releases.searchReleases(applicationId, allReleases); JavaScriptSerializer jss = new JavaScriptSerializer(); string output = jss.Serialize(releaseModelsList); Response.Write(output); Response.Flush(); Response.End(); }
public void ExportDataToExcel(int applicationId, int allReleases) { Releases releases = new Releases(); List<ApplicationModel> releaseModelsList = releases.searchReleases(applicationId, allReleases); Session["exportedData"] = releaseModelsList; JavaScriptSerializer jss = new JavaScriptSerializer(); string output = jss.Serialize(releaseModelsList); Response.Write(output); Response.Flush(); Response.End(); }