I created a confirm message box using:
private void MessageBox2(string msg)
{
Label lbl2 = new Label();lbl2.Text = "<script language='javascript'>" + Environment.NewLine + "window.confirm('" + msg + "')</script>";
Page.Controls.Add(lbl2);
...
Go to the complete details ...