asp.net mvc - Html.ActionLink (): new { route value} is acting strangely. I don't know where length = 17 parameter is coming from -
I have a link on this page
& lt;% = html.ActionLink ( Item title, "edit", "article management," new {id = item.ArticleDataID})%> and a simple method to get the article ID
edit public functioning (int id) {// something}< / Pre>Unfortunately, I'm getting an error " There is a zero value for the parameter ID of int32 to edit in the parameter dictionary ... "
When I check url, I'm looking for something like " "
" Length = 17 " What is it? And what is he doing there? Anyway, by now I am working with a collection on which there are only 3 items.
Thanks for helping
To add you the tap as the last parameter Required:
& lt;% = html.ActionLink ("title", "edit", "article management", new {id = 1}, new {@class = "link -class ", attr =" attribute value "})%> I think it uses root values as HTML values without zero.
Comments
Post a Comment