N
Not Me
Hi,
Yet another error that should be easy to fix.. I have a datalist linked
to an sqldatasource, and I'm wanting to fill it with data from that
source. The following works fine:
<ItemTemplate>
<asp:hyperlink runat="server" ID="hlemail" Text='<%# eval("") %>'
navigateurl='<%# eval("[email]") %>'/>
</ItemTemplate>
But, for the navigateurl I don't just want it to show the email address
as a standard link, I want the full mailto: link. I've tried the
following to no avail
'mailto:' + <%# eval...
"mailto:" + <%# eval...
'mailto:' & <%# eval...
"mailto:" & <%# eval...
they all give compilation errors
mailto:<%# eval("[preferred email address]") %> also gives an error..
'mailto:<%# eval("[preferred email address]") %>' (with 's) just
includes the whole eval statement in the output...
any clues? I seem to be going round in circles at the minute!
cheers,
Chris
Yet another error that should be easy to fix.. I have a datalist linked
to an sqldatasource, and I'm wanting to fill it with data from that
source. The following works fine:
<ItemTemplate>
<asp:hyperlink runat="server" ID="hlemail" Text='<%# eval("") %>'
navigateurl='<%# eval("[email]") %>'/>
</ItemTemplate>
But, for the navigateurl I don't just want it to show the email address
as a standard link, I want the full mailto: link. I've tried the
following to no avail
'mailto:' + <%# eval...
"mailto:" + <%# eval...
'mailto:' & <%# eval...
"mailto:" & <%# eval...
they all give compilation errors
mailto:<%# eval("[preferred email address]") %> also gives an error..
'mailto:<%# eval("[preferred email address]") %>' (with 's) just
includes the whole eval statement in the output...
any clues? I seem to be going round in circles at the minute!
cheers,
Chris