http://community.csdn.net/Expert/topic/3379/3379850.xml?temp=.5464441
问题在这个页面上面

解决方案 »

  1.   

    function ShowWindow(cUrl,cMsg,iWidth,iHeight)
    {
    var cMsgWinStyle;
    var iClientScreenWidth  = window.screen.width;
    var iClientScreenHeight = window.screen.height;
    var iMessageWinLeft     = (iClientScreenWidth - iWidth)/2;
    var iMessageWinTop      = (iClientScreenHeight - iHeight)/2;  cMsgWinStyle = 'dialogTop:' + iMessageWinTop + 'px; dialogLeft:'+iMessageWinLeft+'px; dialogWidth:'+iWidth+'px; dialogHeight:'+iHeight+'px; center:yes; edge: raised; scroll :no; help: no; resizable: no; status: no';
       window.showModalDialog(cUrl,cMsg,cMsgWinStyle); }
    你用这个模拟开个窗口,这个页面里面就放一个确定好了,也可以使用返回值
      

  2.   

    Response.Write("<script>window.alert("不点的时候就保持不动");</script>")
    你试试是不是这样?
      

  3.   

    private void Page_Load(object sender, System.EventArgs e)
    {
    if(!IsPostBack)
    {
    StringBuilder Msg = new StringBuilder();
    Msg.Append("<script language='javascript'>");
    Msg.Append("function confrimDelete(OrderID){");
    Msg.Append("return confirm(''订单编号为"+OrderID+"你保存吗'');");
    Msg.Append("}");
    Msg.Append("</script>");
    }
    }
    private void Button1_Click(object sender, System.EventArgs e)

    string OrderID = "O198823423"; 
    //程序你自己可以生成
    Response.Write("<script> confrimDelete("+OrderID+")</script>");//你自己的事情
    }
      

  4.   

    在生成订单按钮里面的订单号生产后的代码添加
    Response.Write("<script>alert('是否转到其他页面?');</script>");
    。。//按确定后跳转代码
      

  5.   

    其实chenvictor(gg) 在那个帖子中的回答就差一点点了
    大家帮着改一下
    改成只弹出确定按钮
    没有取消按钮
    http://community.csdn.net/Expert/topic/3379/3379850.xml?temp=.5464441
      

  6.   

    如果只有确定按钮,那就用 alert 函数吧,用 alert 函数替换 confirm 函数
      

  7.   

    我想也许没那么复杂
    Page.RegisterStartupScript("","<script>alert('恭喜您注册成功,您的定单号为:"+Did+"');window.location='login.aspx';</script>");
    window.location=''重新定位的路径如不需要:
    Page.RegisterStartupScript("","<script>alert('恭喜您注册成功,您的定单号为:"+Did+"')</script>");