Here you provide some solutions that are often easier to use. I put some effects in a library file.
Warning Window /// /// Server side Alert dialog /// summary> /// Tip information, example: "Can not be empty!" Param> /// Page class param> public void alert (string str_message, point page) {page.registerStartupScript (","