Page_Load()
{
If(!Page.IsPostBack)
{
Session["update"] = Server.UrlEncode(DateTime.Now.Tostring();
}
}
Page_PreRender()
{
ViewState["update"].ToString() = ViewState["update"].Tostring();
}
SaveButton_Click()
{
If(Session["update"].Tostring() == ViewState["update"].Tostring());
{
-------------
-------
---
Session["update"] = Server.UrlEncode(DateTime.New.Tostring());
}
}
Thursday, November 26, 2009
How to prevent Insert Duplicate record into Database on Page Refersh.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment