@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).
                )

5
1
Apt 115 points

                                    public static string ActionLink(this HtmlHelper htmlHelper, 
                                string linkText,
                                string controllerName,
                                string actionName,
                                object values, 
                                object htmlAttributes)

5 (1 Votes)
0
Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
@html.actionlink() in mvc Html.ActionLink(...) @Html.ActionLink() exmaple Html.ActionLink htmlattributes example html.actionlink with html attributes html.actionlink examples @html.actionlink with id what is actionlink html.actionlink explained &lt;a href = &quot;{{ action() }}&quot; &gt;&lt;/a&gt; html actionlink syntax html.actionlink in mvc button HOW TO USE HTML ACTIONLINK html.actionlink from button html actionlink button html actionlink in mvc on href html.actionlink how to call action method on @html actionlink Html.Actionlink looks html.actionlink with style action link in html html.actionlink(&quot;&quot;,&quot;&quot;,&quot;&quot;) html action to link html link action Url.ActionLink html.actionlink button @html.actionlink design html.actionlink with class @Html.ActionLink(); image html.actionlink in .vbhtml @Html.ActionLink(&quot;Create New&quot;, &quot;Create&quot;) Html.ActionLink REFERENCE action url html html.actionlink htmlattributes @Html.ActionLink( class action href html.actionlink to go to action html.actionlink class @html.actionlink mvc @Html.ActionLink(&quot;About&quot;, &quot;About&quot;, &quot;Home&quot;) .actionLink html code in action link @html.actionlink button @Html.ActionLink explained href ?action means in html what is @Html.ActionLink how to use @Html.ActionLink Html.ActionLink( @Html.ActionLink(&quot;&quot;, &quot;Index&quot;) @html.actionlink in mvc @html.actionlink in mvc syntax actionlink in href @Html.ActionLink with css a href action mvc actionlink html.actionlink() html.actinlink() c# mvc 5 link to action mvc @html link action link mvc html5 action link @html.actionlink with method type Html.ActionLink C# html.action link razor c# html.actionlink @Html.ActionLink() c# link to controller action c# @ html actionlink html.actionlink in mvc html actionlink signature .net mvc razor link actionlink asp @Html.ActionLink() in button actionlink razor @Html.ActionLink( .net mvc ActionLink action link in asp.net mvc razor html link acontroler action actionlink in mvc Html.ActionLink .net framework actionlink html helper and mvc aspnet and actionlink parameter html helper and mvc aspnet and actionlink action links html action links mvc razor html helpers actionlink asp action link asp.net actionLink @html.ActionLink build action link c# @HTML actionlink .net mvc link actionlink in mvc razor view razor html helper url c# html.actionlink .net core html.actionlink to view html.actionlink asp.net framework c# @html.actionlink ActionLink html linking with action links c# c# html actionlink mvc c# link html actionlink in mvc html action link html actionlink actionlink mvc Html.ActionLink mvc asp actionlink @Html.ActionLink asp.net
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source