private void OpenPdfFile(string filename)
{
try
{
ClientScript.RegisterStartupScript(this.GetType(), "showPdfFile", "");
}
catch (Win32Exception ex)
{
if (ex.Message == "No application is associated with the specified file for this operation")
{
ClientScript.RegisterStartupScript(this.GetType(), "showPdfFile", "");
}
}
}