Html.ActionLink is not doing # as expected

When using Html.ActionLink passing in a string containing # char it looks like it is, but if you UrlEncode it appears as% 2523.

I believe this is a mistake. Beta version of MVC.

Is this really a mistake?

http://example.com/test# appears as

http://examplee.com/test%2523 instead

http://examplee.com/test%2523

0
asp.net-mvc


source to share


No one has answered this question yet

Check out similar questions:

472
How to make ASP.NET MVC string view?
291
ASP.NET MVC 3 - Partial vs Display Template vs Editor Template
286
Html.ActionLink as button or image, not link
284
Why is Html.ActionLink rendering "Length = 4"
232
Why does AuthorizeAttribute redirect to login page for authentication and authorization?
141
HTML input inside Html.ActionLink (), plus link text?
nineteen
MVC 5 Render View to String
1
Html.ActionLink is not rendering # as expected
0
Bootstrap design is not displayed on the page when @ Html.ActionLink is passed with a parameter.
0
Html.Actionlink not working fine with URLRewrite in ASP.Net MVC



All Articles
Loading...
X
Show
Funny
Dev
Pics