I have an code segment of view .cshtml page like :
@Html.ActionLink("Add Charts of Account", "Save")
Run mode i can see following HTML Code:
<a href="/ChartsOfAccount/Save">Add Charts of Account</a>
But i want to following html code :
<a id="lblAddNode" href="/ChartsOfAccount/Save">Add Charts of Account</a>
is it possible? If possible please explain with example code.
There’s an overload of the ActionLink helper which allows you to specify
routeValuesandhtmlAttributes: