views:

18

answers:

1

hello all,

is it possible to write tooltip for html.RouteLink?

my link:

 <%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)},null)%>  

Thank and take care, Ragims

+2  A: 

If by 'tooltip' you mean a title attribute, then yes:

<%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)}, new { title="My Tooltip" })%>  
Mark B
if i do it like you say im getting always red underline (some kind of error) of all my control.
Ragims
yes your solution is right, it needed just remove null. then works.<%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)}, new { title="My Tooltip" })%>
Ragims
Ah, my mistake - edited!
Mark B