$wnd.alert('This is a modal dialog');
and I believe there is a way to add that script from your code behind, but I can't remember off-hand how to do it. Sorry I can't be of more help.>MyOrder oMyOrder = new MyOrder();
>oMyOrder.ShowDialog();
>
>MyOrder does not containt a definition for ShowDialog...