Hi all, I have a repeater control in which I have custom user control. I have added an attribute on the user control in the ItemDataBound event of repeater control as follows.
I have also added following javascript in the aspx page.
C#
script type="text/javascript">
function NodeClick()
{
if (confirm("Do you really want to select it?"))
{
returntrue;
}
else
{
returnfalse;
}
}
script>
I need to call server side event if user click Ok button of confirmation box. Now the problem I am facing is server side event of the user control is not being firing event when user click Ok button.
Any Idea how to get this thing done?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 11, 2010, 1:10 AM EST
0
hi friend,
i have done this using JQuery library of javascript in GridView. after a few changes in code you can also achieve it and with a good look'n feel of your prompt box. Following project will guide you how to do it.....DOWLOAD PROJECT
Amit ChoudharyRank #145 · 15.8K reputationPosted Feb 11, 2010, 1:10 AM EST
i have done this using JQuery library of javascript in GridView. after a few changes in code you can also achieve it and with a good look'n feel of your prompt box. Following project will guide you how to do it.....DOWLOAD PROJECT
Mark the answer if it helps