Possible Duplicate:
Confirmation message box in webapplication
I want create a message box in code behind. My code is here. It doesn't show any message box.Please help me to do this..
Button btn = new Button();
btn.OnClientClick = "return confirm('Your requested leave count exceeds the balance leave count.\n It may count as Loss of pay if your requeset approved by your head...\n \nAre you sure you wish to apply?');";
if (true)
{
//Do something;
}
else
{
//do something;
}