Hi,
i have codes like this.
code behind page
aspx page code on datagrid1
Finally i have to delete record to press above button. But i want a confirmation dialog box before deletion.
i have codes like this.
code behind page
Code:
Private Sub DataGrid1_ItemCommand(ByVal source As Object, ByVal e As System.Web.UI.WebControls.DataGridCommandEventArgs) Handles DataGrid1.ItemCommand If e.CommandName = "changestatus" Then clsMaster.ExecuteQry("update CaseMaster set Cancel = 'N', CanceledBy = '', CancelReason='', Reason1='', Notes='' where caseid=" & e.Item.Cells(1).Text & "") clsMaster.GridDatashow(DataGrid1, Session("Strqry")) End If End Sub
Code:
<asp:TemplateColumn HeaderText="Reopen"> <ItemStyle HorizontalAlign="left" Width="80px"></ItemStyle> <ItemTemplate> <asp:button CausesValidation="False" id="cButton" CommandName="changestatus" runat="server" Text="Reopen Case" CssClass="button"></asp:button> </ItemTemplate> </asp:TemplateColumn>
Comment