Confirm Message in DataGrid
-
Hi Friends, I new to vb.net. In c#.net in GridView i use RowDataBound method and make a check if commandname is Delete i catch the linkbutton(Delete) by FindControl and on Click i give javascript method for Confirm. If Ok it goes to RowDeleting else Cancel. I am trying something same in vb.net for DataGrid. The button in DataGrid is <asp:ButtonColumn Text="??a??af?" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn> Any idea how can Throw a Confirm Message on Click of This button? Any help would be greatly appreicated Thanks
Cheers Menon
-
Hi Friends, I new to vb.net. In c#.net in GridView i use RowDataBound method and make a check if commandname is Delete i catch the linkbutton(Delete) by FindControl and on Click i give javascript method for Confirm. If Ok it goes to RowDeleting else Cancel. I am trying something same in vb.net for DataGrid. The button in DataGrid is <asp:ButtonColumn Text="??a??af?" ButtonType="PushButton" CommandName="Delete"></asp:ButtonColumn> Any idea how can Throw a Confirm Message on Click of This button? Any help would be greatly appreicated Thanks
Cheers Menon
You should be asking this question in the ASP.NET forum. To get a confirmation dialog, you'd probably be writing the code in JavaScript on the client-side.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007