rowdatabound event
Private Sub gvJobs_RowDataBound(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.GridViewRowEventArgs) Handles gvJobs.RowDataBound If IsDBNull(e.Row.DataItem) Then Return End If If e.Row.RowType = DataControlRowType.DataRow Then Dim lnkEdit As New HtmlAnchor Dim gvRow As GridViewRow gvRow = e.Row lnkEdit = gvRow.FindControl("lnkEdit") lnkEdit.Attributes("onclick") = "popUp()" End If End Sub
javascript function
<script language="javascript" type="text/javascript"> function popUp() { $('#divEdit').sidetoggle(fast); } </script>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)