Asp.net 作为链接的datagridview文本的一部分
我有一个由SqlDataSource填充的datagridviewAsp.net 作为链接的datagridview文本的一部分,asp.net,gridview,webforms,Asp.net,Gridview,Webforms,我有一个由SqlDataSource填充的datagridview <asp:SqlDataSource ID="SqlEnvComments" runat="server" ConnectionString="<%$ ConnectionStrings:Kunskapshjulet %>" SelectCommand="SELECT [EnvComment] FROM [MealItems], [Products]
<asp:SqlDataSource ID="SqlEnvComments" runat="server" ConnectionString="<%$ ConnectionStrings:Kunskapshjulet %>"
SelectCommand="SELECT [EnvComment] FROM [MealItems], [Products]
WHERE ([MealID] = @MealID)
AND [MealItems].[ProductID] = [Products].[ProductID]
AND [EnvComment] is not null">
<SelectParameters>
<asp:SessionParameter Name="MealID" SessionField="MealID" />
</SelectParameters>
</asp:SqlDataSource>
<asp:GridView ID="GridView1" runat="server" DataSourceID="SqlEnvComments" ShowHeader="False" BackColor ="White"
EmptyDataText="There are no envComments">
<AlternatingRowStyle CssClass="Alt"/>
</asp:GridView>
”
会有一个链接重定向到维基百科
是否有可能实现这一点?代码显示网格的绑定列不公开给HTML源,一旦这样做,您可以使用链接类型列或尝试使用锚定标记,因为您正在尝试使用该wikipedia链接。要获取列,请检查网格视图的AutoGenerateColumns属性。如何将列公开给HTML源?
"Read more about Boxing Day at <a href="http://en.wikipedia.org/wiki/Boxing_Day">Wikipedia</a>"