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

mysql - FireDac error 314 - but DLLs are in program directory -

git - How to list all releases of public repository with GitHub API V3 -

c++ - Getting C2512 "no default constructor" for `ClassA` error on the first parentheses of constructor for `ClassB`? -