Image in PopupFormActionLink

Dec 8, 2010 at 10:40 PM

What's the best way to have an image link, rather than text, with the action link helper?

Coordinator
Dec 9, 2010 at 7:36 AM
Edited Dec 9, 2010 at 11:47 AM

for PopupForm

 

<a href="javascript:<%=Url.PopupFormAction<HomeController>(o => o.Do()) %>">
<img src="smiley.gif" />
</a>

 

for Popup

 

<a href="javascript:<%=Url.PopupAction<HomeController>(o => o.Do()) %>">
<img src="smiley.gif" />
</a>

 

Dec 9, 2010 at 3:06 PM

Perfect.  Thanks again for the goodness.