I a developing a web application in c# in which i am using the below code. Am getting "Access denied" when trying to open a file in client side.
String strPop = "<script language='javascript'>" + Environment.NewLine +
"window.open('C://myLocalFile.txt'," +
"'Report','height=520,width=730," +
"toolbars=no,scrollbars=yes,resizable=yes');" +
Environment.NewLine + "</script>" + Environment.NewLine;
Page.RegisterStartupScript("Pop", strPop);
What's the problem? and how to overcome it?