User61956409 posted
Hi JagjitSingh,
want that exception should appear in Dialog Box on client side
You can refer to the following sample to achieve your requirement.
try
{
DateTime dt = Convert.ToDateTime("11111");
}
catch (Exception ex)
{
var script = "alert('" + ex.Message + "')";
ScriptManager.RegisterClientScriptBlock(this, typeof(Page), "showmes", script, true);
}
Following alert box will be displayed on client side:

With Regards,
Fei Han