请教如何用VBScript创建类似MsgBox对话框?

解决方案 »

  1.   

    删除记录时弹出确认框:
    <script LANGUAGE="VBSCRIPT"> 
    a=msgbox("真的要删除该记录吗?",1,"注意")
    if a=1 then
    msgbox("删除")
    else 
    msgbox("不删除")
    end if
    </script>
      

  2.   

    .cs文件中
    Page.RegisterStartUp("confirm","<script>return confirm('.......')</script>")
    Button
    this.Button1.Attributes.Add("onclick","return confrim('...')");
      

  3.   

    button1.attributes["onclick"]="windows.confirm("abc");";
    写在page_load里
      

  4.   

    VBScript ? 这个是ASP里面的吧
      

  5.   

    .cs文件中
    Page.RegisterStartUp("confirm","<script>return confirm('.......')</script>")
    Button
    this.Button1.Attributes.Add("onclick","return confrim('...')");
      

  6.   

    Page.RegisterStartUp("confirm","<script language='VBScript'>return confirm('')</script>")客户端按Small__Wolf的就可以!