you can't use MessageBox function in web page you can use codes such as the following: ------------------------------------------------------------- string strMessage = "content you want to show"; string id = "anystring"; script = "<script language='javascript'>alert('" + strMessage.Replace( "\r\n" , "\\n" ) + "');</script>"; this.Page.RegisterStartupScript(id,script); -----------------------------------------------------------
you can use codes such as the following:
-------------------------------------------------------------
string strMessage = "content you want to show";
string id = "anystring";
script = "<script language='javascript'>alert('" + strMessage.Replace( "\r\n" , "\\n" ) + "');</script>"; this.Page.RegisterStartupScript(id,script);
-----------------------------------------------------------