Assuming that there is a web control button on the webform's ASP.NET, add the following code in the ASPX file.