ali raza
UserControl1.InputAttributes.Add("onclick", "return NodeClick();");
<script type="text/javascript">function NodeClick(){ if (confirm("Do you really want to select it?")) { return true; } else { return false; }}</script>