Controller action:
public string Index(){
var tmp = (from i in Message.message
where i.To == "bognjen" && i.Read == false
select i.Read).Count().ToString();
return tmp;
}
Part of View:
<li><a>Inbox <%=Html.Action("Index","MyController")%></a></li>
When action Index
return string it is not formatted with applyed style for <li>
. How to format this string?
For example: action Index return number 4, then View page show: Inbox 4. Problem: Inbox have one style(font and size) and 4 have other style(with other font and size)
Style for <li>
is:
li {
list-style:none;
background:url(images/bullet.png) no-repeat 0 5px;
padding:3px 0 3px 17px;
}
This style should be for returned data from Index action (in my example that is 4)