怎样做两次完全相同数据,不许提交

解决方案 »

  1.   

    table的row

    row.cloneNode(true);
      

  2.   

    就是Insert之前判断好了,简单明了。
      
    --------------------------------------------------------------
    程序,犹如人生。
      

  3.   

    if(Session["Page1Data"] != null)
    {
    if((String)Session["Page1Data"] == Request.Form.ToString())
    {
    Response.Write("重复了!");
    Response.End();
    }
    }
    Session["Page1Data"]  = Request.Form.ToString();
    ------说错了莫怪。
      

  4.   

    参考以下,我写的代码,提交之后换页就不会出现你所说的刷新问题了
    if (msgBoard.Create())
    { this.Page.RegisterStartupScript(Guid.NewGuid().ToString(),"<script language='javascript'>location.replace('当前页面');  </script>");
    }
      

  5.   

    if(Session["Page1Data"] != null)
    {
    if((String)Session["Page1Data"] == Request.Form.ToString())
    {
    Response.Write("重复了!");
    Response.End();
    }
    }
    Session["Page1Data"]  = Request.Form.ToString();
     这个兄弟是可以的