How to refresh a page on click of a button in asp.net

{0 Comments}

to refresh asp.net web page using asp.net button control you can dynamically add following attribute which will call windows reload function  hence you page will be refreshed or reloaded after button press.

 C# |  copy code |? 
1
Button1.Attributes.Add("onclick", "window.location.reload();");

Leave a Comment

Your email address will not be published.