Note that there are some explanatory texts on larger screens.

plurals
  1. POGridView with Hyperlink column
    primarykey
    data
    text
    <p>I have this <code>GridView</code> in my page:</p> <pre><code> &lt;asp:GridView ID="GridView2" runat="server" DataSourceID="SqlDataSource2" AllowPaging="True" PageSize="20" CellPadding="4" ForeColor="#333333" GridLines="None"&gt; &lt;AlternatingRowStyle BackColor="White" /&gt; &lt;EditRowStyle BackColor="#2461BF" /&gt; &lt;FooterStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt; &lt;HeaderStyle BackColor="#507CD1" Font-Bold="True" ForeColor="White" /&gt; &lt;PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" /&gt; &lt;RowStyle BackColor="#EFF3FB" /&gt; &lt;SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" /&gt; &lt;SortedAscendingCellStyle BackColor="#F5F7FB" /&gt; &lt;SortedAscendingHeaderStyle BackColor="#6D95E1" /&gt; &lt;SortedDescendingCellStyle BackColor="#E9EBEF" /&gt; &lt;SortedDescendingHeaderStyle BackColor="#4870BE" /&gt; &lt;/asp:GridView&gt; </code></pre> <p>And this is the <code>SqlDataSource</code>:</p> <pre><code>&lt;asp:SqlDataSource ID="SqlDataSource2" runat="server" ConnectionString="&lt;%$ ConnectionStrings:ConnectionString %&gt;" ProviderName="&lt;%$ ConnectionStrings:ConnectionString.ProviderName %&gt;" SelectCommand="SELECT country AS Country,count(country) As Count FROM client GROUP by country ORDER BY count(country) DESC;" &gt;&lt;/asp:SqlDataSource&gt; </code></pre> <p>And i want that the name will be hyper link to somethis like this:</p> <pre><code>/Details.aspx?country=countryname </code></pre> <p>How i can implement it?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload