不想用Javascript就用vbscript,不过只有IE才支持在客户端使用vbscript!!

解决方案 »

  1.   

    只能用脚本弹出模式窗口来才能有("title","detail")这样的效果
      

  2.   

    各路兄弟:
      这个问题我也急呀!
    在asp.net vb中如何实现对话框
      

  3.   

    结论:消息框是在客户端弹出的,只能用脚本,如果调用window的对话框的话,这个对话框会显示在服务器上,等待你在服务器按了确定后才能继续执行(这是我初学时犯的错,呵呵)
      

  4.   

    继续关注,有兴趣讨论的请找[email protected]
      

  5.   

    DialogResult result;
    result=MessageBox.Show("You must enter a name.", "Name Entry Error",MessageBoxButtons.YesNo,MessageBoxIcon.Information,MessageBoxDefaultButton.Button1,MessageBoxOptions.ServiceNotification);
    if(result==DialogResult.Yes)
    {
    Response.Write("yes");
    }
      

  6.   

    是web application,不是windows application,不能using System.Windows.Form;using ???
      

  7.   

    edobnet() 的方法的结果上面我已经谈到了,出现在服务器上,如果你是在个人电脑上调试,会认为是对的,因为你的服务器和客户端就是一台机器。
      

  8.   

    Response.Write("<scr"+"ipt> alert('这是弹出的消息') </scr"+"ipt>");
      

  9.   

    可以考虑使自己用javascript写一个类似的函数.
      

  10.   

    <script language=vbscript>
    sub buttClick(operButt)
    if (1=MsgBox("确实要删除该记录吗?",1,"信息")) then     
    ......
             end if
    end sub
    </script>
      

  11.   

    谢谢大家的参与,我后来室用validator、validationSummary控件解决的,validator控件确实能够解决很多问题.
      

  12.   

    是吗,想见见你的这个控件,thx,
    [email protected],[email protected]