How to get value from javascript in server side using RadConfirm.
I have the following code but I am not getting any value in server side:
here my HTML code:
function ConfirmCancel() {
var confirmvalue = false;
if (!confirmvalue) {
radconfirm('CANCELLING A REQUEST IS DEFINE AS : When an employee who received original request approval never performed one day of service in the Sixth Period Coverage Program. This action might trigger the recoupment of the original payments', confirmCallBackFn); return false;
}
}
function confirmCallBackFn(arg) {
var control = $find("<%= inpHide.ClientID%>");
if (arg) {
confirmValue = true;
document.getElementById(control).value = "1";
}
else {
document.getElementById(control).value = "0";
}
}
<input id="inpHide" type="hidden" runat="server" />
<telerik:GridTemplateColumn HeaderText="Link to Form/Cancel Request" UniqueName="ButtonColumn" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="200px" >
<ItemTemplate> <
<asp:ImageButton ID="CancelReqBtn" ImageUrl="~/Image/Cancel_button6.png" runat="server" CommandName="Cancel" ImageAlign="Right" BackColor="Transparent" ToolTip="cancel the request" Width="50px" Height="20px" Visible="false" OnClientClick="return ConfirmCancel();" />
</ItemTemplate>
</telerik:GridTemplateColumn>
And here is my code behind:
if (e.CommandName == "Cancel")
{
int result = int.Parse(inpHide.Value);
if (result == 0)
{
}
But for some reason when I put breakpoint on command name it is not executing.
Please help me to solve this issue.
thanks so much