Quantcast
Channel: encode url having Xpath in Query String - Stack Overflow
Viewing all articles
Browse latest Browse all 2

encode url having Xpath in Query String

$
0
0

I want to send title of news to some other page through query string. My title is dynamic so it may contain '&' or other special characters. So I tried this

<a href="NewsByTitle.aspx?title=<%#HttpServerUtility.HtmlEncode(XPath("title"))%>"

But I am getting error "The best overloaded method match for 'System.Web.HttpServerUtility.HtmlEncode(string)' has some invalid arguments"Please help me.


Viewing all articles
Browse latest Browse all 2

Latest Images

Trending Articles





Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>
<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596344.js" async> </script>