asp.net mvc - Query String Formatting not working in MVC2 -


i trying create url query string in mcv application here code

 <%= html.actionlink(resources.strings.signin_lbl, "signin", "account", new { lang = viewdata["user-language"] })%> 

and here generated url

mydomain.com/admin/account.aspx?length=7 

you're using wrong overload of html.actionlink

if remember correctly, may using overload takes in htmlattributes parameters, pass in null.

<%= html.actionlink(resources.strings.signin_lbl, "signin", "account", new { lang = viewdata["user-language"] }, null)%> 

Comments

Popular posts from this blog

html - Firefox flex bug applied to buttons? -

html - Missing border-right in select on Firefox -

python - build a suggestions list using fuzzywuzzy -