bonjour,
s'il vous je veux afficher un message d'alerte javascript sous c#, j'utilise ce code mais ca marche pas.

catch (Exception ex)
{

string msg ="Error:\n"+ ex.Message;

string popupScript = "<script language= \"javascript\">alert(" + msg + ");</script>";
Page.RegisterStartupScript("PopupScript", popupScript);


}

quelqu'un peut il m'aider

merci