Hi,
I am having a weird problem with Deleting a row in a gridview. I have a template field that has image buttons for Delete and Edit
CommandArgument="<%# Container.DataItemIndex %>" CommandName="View"
ImageUrl="~/images/Edit.gif" ToolTip="View Billing Entry" />
CommandArgument="<%# Container.DataItemIndex %>" CommandName="Delete"
ImageUrl="~/images/Delete.gif" ToolTip="Delete Billing Entry" OnClientClick="return confirm('Are you sure you want to delete this Entry?');"/>
If I click the delete button, it doesn't respond. I have been trying to test some stuff with this, and it seems that the event isn't firing at all I have set some alerts to RowCommand and they dont show up. If I click the Add button, Edit button, or Delete, nothing happens at all.
on some of my pages I am using Mandeeps LiveTabs. If I move the module with the gridview into a Tab of Live Tabs, everything works exactly as it is meant to. This is really confusing me, as it points towards all of my code being correct, but there is something going on with the page that is stopping it from working. I have tried recreating it from scratch and I still have this problem.
Has anyone else experienced this or know if there is something on a DNN page that might prevent the event from occuring?
Another note, I am using a SQL Datasource as the datasource for the GridView, If I check off "Enable Deleting" then it does indeed delete the way it is meant to. The problem is I can't then do a javascript confirm prompt if it is a Command Field.
Thanks for any help.
Chris