<script type='text/javascript> $(function () { var overlay = $('<div id="overlay"></div>'); $('.close').click(function () { $('.popup').hide(); overlay.appendTo(document.body).remove(); return false; }); $('.x').click(function () { $('.popup').hide(); overlay.appendTo(document.body).remove(); return false; }); $('.click').click(function () { overlay.show(); overlay.appendTo(document.body); $('.popup').show(); return false; }); }); </script>
<asp:TemplateField ItemStyle-BorderColor="#6699ff"> <itemtemplate> <asp:LinkButton ID="lbEdit" runat="server" Font-Underline="false" OnClick="lbEdit_Click" CssClass="click">Edit<%--OnClick="lbEdit_Click" --%> <span>|</span> <asp:LinkButton ID="lbDelete" runat="server" Font-Underline="false">Delete </itemtemplate>
Protected Sub lbEdit_Click(sender As Object, e As EventArgs) Dim gvRow As GridViewRow = CType(CType(sender, Control).Parent.Parent, GridViewRow) Dim index As Integer = gvRow.RowIndex Dim checkvalue As String getvalue = gvFinanceCat.Rows(index).Cells(0).Text dt = BusinessLogic.blFinanceTranCategory.FillFinanceCategorybyID(getvalue) txtCatName.Text = dt.Rows(0).Item(1).ToString() txtDescription.Text = dt.Rows(0).Item(2).ToString() checkvalue = dt.Rows(0).Item(3).ToString() If checkvalue = "1" Then chkIncome.Checked = True Else chkIncome.Checked = False End If End Sub
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)