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">
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")
<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>