How can I disable or enable button in asp.net? I want to disable button after click to prevent double click. I am trying to disable my Login button after clicking on it.
Front-end only:
Log in
Front-end & Code Behind:
(this reloads the whole page though.. check this to prevent reloading)
disablebutton.aspx:
disablebutton.aspx.cs:
protected void codeBehindFunction(object sender, EventArgs e) { loginbtnID.Disabled = false; }