View Full Version : Mailto Link in DataView Template

2 Nov 2009, 5:48 AM
I use the following template in a DataView control. I have includes a "mailto" href. While the link is properly formed and displays correctly in the IE status bar on hover, clicking the link does not work.

Is there sonething I am missing?

'<tpl for=".">',
'<div class="search-item">',
'<table border="0" cellpadding="0" cellspacing="0" class="commentItem">',
'<td rowspan="2" valign="top" class="commentImage" align="center" nowrap>',
'<img border="0" src="{Image}" height="50"></td>',
'<td valign="top" class="commentTitle">{Topic}</td>',
'<td rowspan="2" valign="top" class="commentDate" nowrap>{Time:date("M j, Y g:i A")}<br><a href="mailto:{Email}?subject={Topic}">{Author}</a></td>',
'<td valign="top" class="commentText">{Comment}<br><br></td>',