ASP.NET: Clickable BoundField in Gridview

24May08

Finally I have my own domain name. Please click HERE to read this same post on my new site. Thanks!

Problem: I customized my gridview and created a set of boundfield columns. Now, I need to make one of these boundfields be clickable or some sort of hyperlink.

Solution: Create a TemplateField and a hyperlink control in your ItemTemplate.

<asp:GridView ID="GridView1" runat="server">
   <Columns>
      <asp:TemplateField>
         <ItemTemplate>
            <asp:HyperLink ID="Hyperlink1" runat="server"
               Text='<%# Bind("FieldName") %>'>
            </asp:HyperLink>
         </ItemTemplate>
      </asp:TemplateField>

Please click HERE to continue reading.

Advertisement


10 Responses to “ASP.NET: Clickable BoundField in Gridview”

  1. 1 bleue

    Woooh! Pre, I Installed VS 2005 at home for self study. Will ask you if I have questions .net master! hehehe! XD

  2. 2 rs

    wehehe, wag ka maingay bleue nagpapanggap lang akong may alam!

  3. 3 Tash

    But thats not clickable. How do I make that clickable.

  4. I live in London asian pussy model 89604

  5. I’m retired cinderella kid story 72515

  6. What sort of music do you listen to? junior models
    zdpo

  7. We’d like to offer you the job Cp Pussy xhk

  8. Whereabouts in are you from? Ls Model Tgp
    8(

  9. We’d like to offer you the job Petite Model Sex
    jtnvw


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s


Follow

Get every new post delivered to your Inbox.