| HyperLinkField mailto |
|
If you are trying to use the HyperLinkField mailto function then you will most like encounter a problem unless you have set it up correctly to fixed. Here I try to use the HyperLinkField but it does work as expected: <asp:GridView ID="GridView5" runat="server" AutoGenerateColumns="False" CssClass="DataTableProjects" DataSourceID="SqlDataSourceBIcontacts" GridLines="None" ShowHeader="False"> <Columns> <asp:BoundField DataField="Location" HeaderText="Location" SortExpression="Location" /> <asp:HyperLinkField DataNavigateUrlFields="RTCFlink" DataTextField="Name" HeaderText="Name" /> </Columns> <AlternatingRowStyle CssClass="SearchResultsAlternateCell" /> </asp:GridView>
To get around this issue you can try the following thing, instead of using the HyperLinkField try to use the BoundField.
<asp:BoundField DataField="SendTo" DataFormatString="<a href=mailto:{0}>{0}</a>" HtmlEncodeFormatString="false" HeaderText="Email" SortExpression="SendTo" />
|