DevSA
08-29-2007, 02:32 PM
HI,
Ihave a problem with a datalist(I am using vb.net)
Ihave a datalist with a hyperlink as a itemtemplate, my problem is that the hyperlink have the value of an email adress Iwant to add "mailto:" to the hyperlink to have the open box to write an email to that contact (exp open outlook new mail) but when I add the "mailto:" no thing happened when I click the hyperlink, my code is like this:
********************
<asp:datalist id="ddAgent" runat="server" >
<ItemTemplate>
.....
<asp:label id=lablFax runat="server" Text="<%#
container.dataitem.Fax %>">
</asp:label><BR>
<asp:label id="Label2" runat="server">E:</asp:label>
<asp:hyperlink Runat="server" ID="lnkContact" text="<%# container.dataitem.contact %>" NavigateUrl="mailto:'<%# container.dataitem.contact%>'">
</asp:hyperlink>
</ItemTemplate>
</asp:datalist>
*********************************
what's wrong with this.
thanks for yur help in advance.
Ihave a problem with a datalist(I am using vb.net)
Ihave a datalist with a hyperlink as a itemtemplate, my problem is that the hyperlink have the value of an email adress Iwant to add "mailto:" to the hyperlink to have the open box to write an email to that contact (exp open outlook new mail) but when I add the "mailto:" no thing happened when I click the hyperlink, my code is like this:
********************
<asp:datalist id="ddAgent" runat="server" >
<ItemTemplate>
.....
<asp:label id=lablFax runat="server" Text="<%#
container.dataitem.Fax %>">
</asp:label><BR>
<asp:label id="Label2" runat="server">E:</asp:label>
<asp:hyperlink Runat="server" ID="lnkContact" text="<%# container.dataitem.contact %>" NavigateUrl="mailto:'<%# container.dataitem.contact%>'">
</asp:hyperlink>
</ItemTemplate>
</asp:datalist>
*********************************
what's wrong with this.
thanks for yur help in advance.