Here we will bind GridView fields to HyperLink and we will link hyperlink to bing.com to do search. You can even use anchor tag instead of hyperlink. <ItemTemplate> <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "Http://www.bing.com?q="+DataBinder.Eval(Container.DataItem,"FirstName") %>' Text='<%#DataBinder.Eval(Container.DataItem,"FirstName") %>'> </asp:HyperLink> </ItemTemplate> In above code snippet we have, gridview dynamic hyperlink. NavigateUrl='<%# "Http://www.bing.com?q="+DataBinder.Eval(Container.DataItem,"FirstName") %>' The DataBinder.Eval will extract FirstName from the DataSource.
Here we will bind GridView fields to HyperLink and we will link hyperlink to bing.com to do search. You can even use anchor tag instead of hyperlink.
<ItemTemplate>
Text='<%#DataBinder.Eval(Container.DataItem,"FirstName") %>'>
</ItemTemplate>
Be the first to rate this post
Satalaj
I'm Satalaj.
↑ Grab this Headline Animator
Get notified when a new post is published.