Wrox Programmer Forums
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
Old December 10th, 2006, 01:25 PM
Registered User
Join Date: Dec 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Appreciate a little help on:

I am trying to run some client side script to select all rows by clicking on a linkbutton although it is not working. i am sure i am missing a concept or something as i am new to asp. some help on this would be great. thx in advance. By the way i am using master pages if this information is important. code looks like this:


asp:Content ID="content4" ContentPlaceHolderID="ContentPlaceHolder4" runat="server">

script type="text/VB">

private sub LinkButton1_OnClientClick()

dim dr as GridViewRow

for each dr in gridview1.rows


if dr.RowType = DataControlRowType.DataRow then

dim chk as CheckBox = dr.FindControl("chk")

chk.checked =



end if


end sub


&nbsp;<asp:Label ID="Label1" runat="server" Font-Names="Arial" Font-Size="Small"

Text="Select: " style="font-size: 9pt; color: black; font-family: Arial"></asp:Label>

<asp:LinkButton ID="LinkButton1" runat="server" Font-Names="Arial" Font-Size="Small"

style="font-size: 9pt; color: black; font-family: Arial" OnClientClick="LinkButton1_OnClientClick()">All, </asp:content>

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.