how to add a hyper link in a gridview
<p>I have a gridview control and I would like the field Title to be a hyperlink and execute a stored procedure when clicked. Can anyone assist me in this?</p>

<p>Does this code look right?</p>

<pre><code>&lt;Columns&gt;
    &lt;asp:TemplateField&gt;
        &lt;ItemTemplate&gt;
            &lt;asp:HyperLink ID="hpTitle" runat="server" Text='&lt;%# Bind("Title") %&gt;' NavigateUrl='&lt;%# Bind("SelectBook") %&gt;'&gt;&lt;/asp:HyperLink&gt;
        &lt;/ItemTemplate&gt;
    &lt;/asp:TemplateField&gt;
    &lt;asp:BoundField DataField="ID" HeaderText="ID" InsertVisible="False" ReadOnly="True" SortExpression="ID" /&gt;
    &lt;asp:BoundField DataField="Publisher" HeaderText="Publisher" SortExpression="Publisher" /&gt;
    &lt;asp:BoundField DataField="Title" HeaderText="Title" SortExpression="Title" /&gt;
&lt;/Columns&gt;
</code></pre>
