This is a migrated thread and some comments may be shown as answers.

open radconfirm in condition server side

1 Answer 161 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
bharat veer
Top achievements
Rank 1
bharat veer asked on 23 Aug 2011, 07:27 PM
Hi,
i want to open rad confirm by condition on the server side.
means.
suppose below is the server side code.
if(i=6)
{
 //Rad Confirm should be opened
}

and after opening Rad confirm on the clicking OK and cancel button
server side event should be trapped.

please reply soon.

1 Answer, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 24 Aug 2011, 07:52 AM
Hello BharatVeer,

Try the following code snippets to open RadConfirm from server side.
C#:
protected void Button1_Click(object sender, EventArgs e)
{
RadWindowManager1.RadConfirm("RadConfirmis called from the server", 330, 100, "Server RadConfirm", "confirmCallBackFn");
}

JS:
function confirmCallBackFn(arg)
 {
    radconfirm("<strong>radconfirm</strong> returned the following result: <h3 style='color: #ff0000;'>" + arg + "</h3>", null, null, "Result");
}

Thanks,
Shinu.
Tags
General Discussions
Asked by
bharat veer
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Share this question
or