don't refresh page on button click asp.net core code example Example: page refresh on button click in c# Response.Redirect(Request.RawUrl);