呵呵,web应用这样的MessageBox()
要么用JavaScript的alert(),confirm(),
要么用validatorSummary控件,
要么用第三方控件,
在论坛里搜索一下MessageBox,这方面讨论太多了

解决方案 »

  1.   

    to  arding123(阿拉丁) 
    JavaScript怎样实现?
      

  2.   

    <script language=javascript>
       alert("You trigger a event! ");
       confirm("Are you sure ?");
    </script>or<asp:button ID="Button1" runat=server onclick="javascript:return confirm('Are you sure ?");'>aaa</asp:button>
      

  3.   

    private void DataGrid1_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e)
    {
    LinkButton myDeleteButton;
    switch(e.Item.ItemType)
    {
    case ListItemType.Item:
    case ListItemType.AlternatingItem:
    myDeleteButton = (LinkButton) e.Item.Cells[1].Controls[0];
    myDeleteButton.Attributes.Add("onclick", @"return confirm('你确认要删除吗?');");
    break; } }
      

  4.   

    Response.Write("<script Language=JavaScript>");
    Response.Write("if ( confirm( '添加成功,继续添加吗?' ) == true ){window.location.href='input.aspx';}");
    Response.Write("else{window.location.href='index.aspx';}</script>");