Probably a shameful noob question: I'm generating a series of buttons on page load from a SQL datasource using XSL. I'm having an issue with radConfirm and the postback. My confirm dialog shows up, but clicking OK doesn't trigger the underlying Command.
I'm not sure what the first parameter of the __doPostBack should be (and heck, I'm not that confident in the second parameter, neither). If it were always a single button, I suspect the first parameter would be something like <%= Button.ClientID %>. But how do I get the ID of the clicked image button when I don't know it's ID ahead of time? There could be one, there could be 20.
<asp:ImageButton ID="b_RemoveMod_{@mID}" runat="server" ImageUrl="~\Images\12.png" AlternateText="Remove Module" CssClass="hideMe" CommandName="RemoveModule" CommandArgument="{@mID}" OnCommand="ImageButton_onCommand" onClientClick="radconfirm('Are you sure you want to delete the module and return it to inventory?', confirmRemoveMod, 300, 140, null, 'Confirm Module Removal');" /> |
I'm not sure what the first parameter of the __doPostBack should be (and heck, I'm not that confident in the second parameter, neither). If it were always a single button, I suspect the first parameter would be something like <%= Button.ClientID %>. But how do I get the ID of the clicked image button when I don't know it's ID ahead of time? There could be one, there could be 20.
function confirmRemoveMod(arg) { |
if (arg == true) { |
__doPostBack('', 'ImageButton_onCommand#RemoveModule'); |
} |
} |