Protected Sub Gridparent_SelectedIndexChanged(sender As Object, e As System.EventArgs) Handles Gridparent.SelectedIndexChanged If Gridparent.Rows.Count > 0 Then For Each gvrow As GridViewRow In Gridparent.Rows Dim chk As CheckBox = DirectCast(row.FindControl("CheckBox2"), CheckBox) If chk.Checked = True Then Dim gid As String = DirectCast(gvrow.FindControl("lbtrans"), Label).Text HiddenField1.Value = gid End If Next End If
Dim transid As String = HiddenField1.Value Dim wempid As String = HiddenField3.Value Dim hyperLink = TryCast(e.Row.FindControl("HyperLink1"), HyperLink) If hyperLink IsNot Nothing Then If HiddenField7.Value = 0 Then hyperLink.NavigateUrl = "Leaveauth.aspx?wempno=" & Request.QueryString("wempno") & "&transid=" & transid & "&wempid=" & wempid & "&keyd=" & keyd & "" hyperLink.Attributes.Add("class", "fancybox") HiddenField7.Value = 1 Else 'hyperLink.NavigateUrl = "#" End If End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)