I am attempting to open a PDF in the PDF viewer in Chrome browser and it reports missing file when ampersands is present in a directory path, the File Name specifically.
LinkButton lbnFileName = (LinkButton)e.Row.FindControl("lbnFileName");
Label lblFolder = (Label)e.Row.FindControl("lblFolder");
string filePath = "/images/Documents/";
string sFullPath = lblFolder.Text.Replace("\\", "/") + lbnFileName.Text;
HyperLink hlDocName = (HyperLink)e.Row.FindControl("hlDocName");
string vPath = Request.Url.GetLeftPart(UriPartial.Authority) + Request.ApplicationPath;
string sURL = vPath + filePath + sFullPath.Replace("&", "%26");
hlDocName.NavigateUrl = sURL;
hlDocName.Target = "_Blank";