文档介绍:protectedvoidButton1_Click(objectsender,EventArgse) { ClientScriptManagercs=; ("Hello","1,2,3"); ((),"HelloWorld","functionhelloWorld(){alert(1);}",true); ("HelloWorld",""); //( (,"Hello","World"); ("hello","world"); ((),"HelloWorld","('Doyoureallywanttosubmittheform?')"); ((),"HelloWorld","<script>alert('Thepagehasloaded!')</script>"); }(   Typetype,   stringkey,   stringscript)RegisterOnSubmitStatement添加一个脚本,该脚本在页面提交前执行并提供取消提交的机会。 <%***@PageLanguage="C#"%><scriptrunat="server">publicvoidPage_Load(Objectsender,EventArgse){//="OnSubmitScript";Typecstype=();//=;//(!(cstype,csname)){Stringcstext="('TextfromOnSubmitstatement');";(cstype,csname,cstext);}}</script><html><head><title>ClientScriptManagerExample</tit