Don't consider this the best approach, but, it will work nice. If you are focusing on Pdf files, use the other answer.
string s = "<SCRIPT LANGUAGE=\"JavaScript\">document.getElementById('pdfiframe').src = {0};<SCRIPT>";
System.Web.HttpContext.Current.Response.Write(string.Format(s, urlpath));