1. the prompt message method response. Write ("<SCRIPT type =" text/JavaScript "> alert ('the data you queried does not exist! '); </SCRIPT> "); // a prompt is displayed, but the page is blank. registerclientscriptblock ("tishi", "<SCRIPT type =" text/JavaScript "> alert ('data You queried does not exist'); </SCRIPT> "); // a prompt is displayed, but the page is blank. registerstartupscript ("tishi", "<SCRIPT type =" text/JavaScript "> alert ('data You queried does not exist'); </SCRIPT> "); // expired, // The prompt is displayed. The clientscript is not blank. registerclientscriptblock (this. getType (), "tishi", "<SCRIPT type =" text/JavaScript "> alert ('the data you queried does not exist! '); </SCRIPT> "); // a prompt is displayed, but the clientscript is blank. registerstartupscript (this. getType (), "tishi", "<SCRIPT type =" text/JavaScript "> alert ('the data you queried does not exist! '); </SCRIPT> "); // The prompt is displayed, and the page is not blank. // system must be introduced in vs2005. web. extensions. dllscriptmanager. registerclientscriptblock (this. btntishi, typeof (button), "tishi", "alert ('the data you queried does not exist! '); ", True); // The prompt is displayed, but the page is blank. scriptmanager. registerclientscriptblock (this, this. getType (), "tishi", "alert ('the data you queried does not exist! '); ", True); // The prompt is displayed, but the page is blank. This indicates pagescriptmanager. registerstartupscript (this. btntishi, typeof (button), "tishi", "alert ('the data you queried does not exist! '); ", True); // The prompt message is displayed. The page does not contain a blank scriptmanager. registerstartupscript (page, typeof (PAGE), "tishi", "alert ('the data you queried does not exist! '); ", True); // The prompt message is displayed. The page does not contain a blank scriptmanager. registerstartupscript (this, typeof (_ default), "tishi", script, true); // a prompt is displayed. The page is not blank. This indicates that the page // returns the confirm value in the background, the selected execution statement Block C # End: protected void page_load (Object sender, eventargs e) {If (! Ispostback) {This. btntishi. attributes. add ("onclick", "tishi ()") ;}} protected void btntishi_click (Object sender, eventargs e) {If (this. hidevalue. value = "1") {response. write ("success");} else {response. write ("failue") ;}} JS end: <SCRIPT type = "text/JavaScript"> function tishi () {If (confirm ('Are you sure you want to delete it? ') {Document. getelementbyidx_x ('hidevalue '). value = '1'; // window. location. href = Window. location. href;} else {document. getelementbyidx_x ('hidevalue '). value = '0'; }}</SCRIPT>