简体   繁体   中英

How to use class in ActionLink in asp.net mvc?

Here The upper line is in html while lower is in asp.net but I am not getting the output from lower line as the upper gives.

The output with upper line is first one and the output of lower line is second one.

Why I am not getting the desired output?

你可以试试这个

<li>@Html.ActionLink("Basic Information", "Index", "EditProfile", new { }, new { @class = "active icon ion-ios-information-outline" })</li>

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM