TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Vijay
NA
150
90.8k
How to add image in @Html.ActionLink , ASP.Net MVC
Jul 15 2015 5:04 AM
I am trying add image in @Html.ActionLink using ASP.Net MVC
MVC Code:
@Html.ActionLink(linkText: "Image Text", actionName: "Index", controllerName: "Home", routeValues: null, htmlAttributes: new { @class = "addimg" })
CSS:
.addimg {
background-image: url("/assets/images/img3.png");
background-repeat: no-repeat;
width: 348px;
height: 65px;
}
what mistake am doing in code? without linktext cant create a ActionLink
Please give suggestions...
Thanks
Reply
Answers (
5
)
How to handle unauthorised url redirect to error page
ASP.NET Web Application