ResponseHelper.Redirect("popup.aspx?file= "+ LogicLayer.ManualPath + _ddlPLCs.SelectedValue.ToString() + "\\" + _PLCRow[0][0].ToString() ,"_page", "menubar=0,width=100,height=100");
in the second page :
if (Request.QueryString["file"] != null)
{
LogicLayer.viewManual(Request.QueryString["file"].ToString());
}
i found that slash (\) characters is removed from the file path
are there any idea ???
The backslash (
\) is not acceptable in a URL. You have to encode the characters to a %HEX value. In ASP.Net there is a method to encode a URL string, and one to decode the string.In the View:
In the Code Behind:
Here’s a similar question.