@Html.ActionLink
Html.ActionLink(article.Title,
"Login", // <-- Controller Name.
"Item", // <-- ActionMethod
new { id = article.ArticleID }, // <-- Route arguments.
null // <-- htmlArguments .. which are none. You need this value
// otherwise you call the WRONG method ...
// (refer to comments, below).
)public static string ActionLink(this HtmlHelper htmlHelper,
string linkText,
string controllerName,
string actionName,
object values,
object htmlAttributes)
Also in C#:
- vb.net check if datatable has rows
- how to open new form on button click in c# xamarin
- c# print expression tree
- c# regex to find number between parenthesis
- how to destroy a gameobject after some hits in unity 3d
- c# type of generic is string
- unity onclick addlistener
- cc# sort list with list if ids
- c# razor add disabled to button if
- linq in c#
- c# find duplicates in list
- c# initialize array
- escape double quotes c#
- c# console delay
- array c#
- unity rotate around axis
- C# webclient submit form
- new command - latex
- month number to text in c#
- C# loop through array of objet
- isGrounded script for copy
- unity particle system color
- c# stop loop in method
- c# multi threading example