In codebehind of my asp.net
page has a button and when single-click her open a RadWindow
, don't have a problem.
The problem is when somebody close
the radwindows, because to open is necessary double-click. I don't like this.
For me control refresh to disable the double-click
page I use:
Boolean IsPageRefresh;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
ViewState["postids"] = System.Guid.NewGuid().ToString();
Session["postid"] = ViewState["postids"].ToString();
}
else
{
if (ViewState["postids"].ToString() != Session["postid"].ToString())
{
IsPageRefresh = true;
}
Session["postid"] = System.Guid.NewGuid().ToString();
ViewState["postids"] = Session["postid"].ToString();
}
}
But don't work, somebody use F5 or click in button
the radwindow
open again.
How can I detect to difference when use F5 and Click button
?