I have an application in which the user would open the document clicking the a linkbutton which opens the path of document
if (e.CommandArgument.ToString().ToLower().IndexOf(".pdf") > 0)
ScriptManager.RegisterStartupScript(Page, this.GetType(), "myPopUp", "<script language='Javascript'>mywin=window.open('file:" + e.CommandArgument.ToString().Trim().Replace("\\", "/") + "', '', 'location=0,status=0,resizable=1,scrollbars=1,height=800px, width=1000px');</script>", false);
In this when the filename is something like xyz## it is reading as xyz#
and if filename is like xyz# it is reading xyz
Any solution?