After adding an Ajax control to the ASP. NET page, you cannot call up the window. solution:
In ASP. net2.0, Ajax uses the new scriptmanager class for management, but is not compatible with the original clientscriptmanager class.
<SCRIPT> alert ('prompt: product added successfully! ') </SCRIPT> and
This. clientscript. registerclientscriptblock (this. GetType (), "name", "<SCRIPT> alert ('prompt: The product is successfully added! '); </SCRIPT> ", true );
Page. clientscript. registerclientscriptblock (this. GetType (), "name", "<SCRIPT> alert ('prompt: product added successfully'); </SCRIPT>", true );
These methods are invalid.
You can use the following method to writeCodeImplementation
Scriptmanager. registerstartupscript (updatepanel1, updatepanel1.gettype (), "", "alert ('prompt: product added successfully! '); If (confirm (' do you want to add more? Cancel going to product management page ') {alert ('add more on this page')} else {window. open ('productmanage. aspx ',' _ Self ');} ", true );