将URL添加到gridview中的超链接字段.

问题描述:

大家好,

请任何人建议我,如何将URL添加到gridview中的超链接字段?

我有以下标签:

Hi All,

Please anyone suggest me, how to add an URL to the hyperlink field in a gridview?

I have the following tags:

<asp:HyperLinkField DataNavigateUrlFields="MobileNo"
                                                DataTextField="MobileNo"
                                                HeaderText="Mobile Number"
                                                SortExpression="ProductName" />

http://authors.aspalliance.com/aspxtreme/webforms/controls/addinghyperlinkfieldstogridview .aspx [ ^ ]

Google [ HyperlinkField.Target [ ^ ]可以设置为_blank以获得弹出窗口.
http://authors.aspalliance.com/aspxtreme/webforms/controls/addinghyperlinkfieldstogridview.aspx[^]

Google[^] has many more links if this is what you want.

HyperlinkField.Target[^] can be set to _blank to get a popup.