In one common scenario it will be helpful if you required to submit payment information online "click only once, or you may receive multiple charges. Or your specific requirement to click only once.
In C#
protected void Page_Load(object sender, EventArgs e)
{
btnName.Attributes.Add("onclick", @"MovetoTop(); this.disabled = true; " + this.Page.ClientScript.GetPostBackEventReference(btnName, null) + ";");
}
MovetoTop is the another function used to find the top of the webpage.
$("html, body").animate({ scrollTop: 0 }, "slow");
}
No comments:
Post a Comment