1. Simply change the contenttype and open the PDF file Response.Clear(); Response.ContentType = "application/pdf"; //change the content here based on different files type Response.AddHeader("Content... "inline;filename=" + strFilePath); Response.WriteFile(strFileP... Response.End(); 2. use Iframe Html control, set the src attribute of the control as PDF file and thats it.. Following is a ASP.net server control which uses the iframe, using System; using System.Collections.Generic; using ......
#region "GetDataSetBySchema" /// <summary> /// GetDataSetBySchema - Returns the Dataset for required schema /// </summary> /// <param name="strFormCode"></... /// <returns>Dataset</... public DataSet GetDataSetBySchema(string strXmlSchemaPath) { DataSet dsXml = new DataSet(); string strSchemaPath = string.Empty; try { dsXml.ReadXmlSchema(strXmlS... return dsXml; } catch { throw; } } #endregion #region "ConvertXMLToDataSet" /// <summary> /// ......