The Html.RouteLink() HtmlHelper works great for text links. But what's the best way to link an image?
相关问题
- MVC-Routing,Why i can not ignore defaults,The matc
- Backbone.js PushState routes .htaccess only workin
- Laravel - Implicit route model binding with soft d
- parameters in routing do not work MVC 3
- There is no ViewData item with the key 'taskTy
相关文章
- How to get a list of connected clients on SignalR
- How do you redirect to the calling page in ASP.NET
- Change color of bars depending on value in Highcha
- The program '[4432] iisexpress.exe' has ex
- ASP.Net MVC 4 Bundles
- How to get server path of physical path ?
- Cannot implicitly convert Web.Http.Results.JsonRes
- entity type has no key defined - Code first
Create your own helper extension.
this code has been tested on mvc4...
This is an updated version that I have from MiniScalope answer above. I'm using VS2010 and ASP.Net MVC 2 Preview
I don't have enough SO swagger to add a comment, but this is a comment on MiniScalope's comment above:
I would suggest making this an HtmlHelper extension method in itself (and simplify it), for reuse:
Here is mine, it`s the core function make some overloads