leocasep leocasep - 9 months ago 44
reST (reStructuredText) Question

REST MVC - Cant Pass # character on parameter type String

Hello I´m new on REST and I create my First REST MVC Api.
I have one method call

wich recieve one string parameter
"(string eventos)"
and when I want to pass the string
on server side (Action
on my Apicontroller) only receive in eventos parameter the first part of the string passed

I dont know if I can pass the
but with other character I havent got any problems.

An example of a call to my rest is:


And in my server side I recieve from parameter eventos

Thanks and excuse me because my english is not the best. =)

Answer Source

You have to encode the # symbol, since it is a reserved symbol in URLs.

So when creating those links, you should use something like UrlEncode.