asp.net - ASP C#: Special characters: #, $, + cant pass trough URL parameter -
I need to get the file from virtual folders. I have GetDocumentPreview.aspx which can do it. The parameter URL types are the good one below:
/GetDocumentPreview.aspx?name=filename&type=jpg // But if I ask for a file with #, & amp;, + name: /GetDocumentPreview.aspx?name = & amp; File name & amp; Type = JPG /GetDocumentPreview.aspx?name=#filename&type=jpg/GetDocumentPreview.aspx?name=+filename&type=jpg
I have a file, because of the character # & Amp;, + (I have tested all the characters).
I get the URL parameter #, & amp; + How can I pass the URL parameters to use because I need this class phone from javascript hover tooltips with images.
You need to escape those special characters: This function is the most Good: Be careful, do not use UrlEncode
Comments
Post a Comment