1、DataGrid中:
<asp:HyperLinkColumn Target="_blank" DataNavigateUrlField="m_id" DataNavigateUrlFormatString="view.aspx?id={0}" DataTextField="m_title"></asp:HyperLinkColumn>
2、DataList、Repeater中
<asp:Repeater runat="server" id="Repeater1">
<ItemTemplate>
<a href='<%#DataBinder.Eval(Container.DataItem,"url")%>'><%#DataBinder.Eval(Container.DataItem,"linkname")%></a><br>
</ItemTemplate>
</asp:Repeater>