1

is it possible to write tooltip for html.RouteLink?

my link:

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

Thank and take care, Ragims

gideon
  • 19,329
  • 11
  • 72
  • 113
r.r
  • 7,023
  • 28
  • 87
  • 129

1 Answers1

4

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

<%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)}, new { title="My Tooltip" })%>  
Mark Bell
  • 28,985
  • 26
  • 118
  • 145
  • if i do it like you say im getting always red underline (some kind of error) of all my control. – r.r Aug 31 '10 at 08:09
  • yes your solution is right, it needed just remove null. then works. <%= Html.RouteLink("<", new { page = (Model.PageIndex - 1)}, new { title="My Tooltip" })%> – r.r Aug 31 '10 at 08:12
  • +1 thank you. Adding html is not so obvious! I thought I should be `"title=xxxx"` – gideon Dec 21 '10 at 04:44