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.

"itemprop =" text ">

You need to escape those special characters:

This function is the most Good:

Enter image description here

Be careful, do not use UrlEncode

Enter image details here


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -