As mentioned,
Response.Redirect
should work if you just want to navigate to the same window page.
The
ASP.NET Button
server control will render as
type="submit"
.Invoking the
OnClick
event will
submit
the
form
, and result a page reload, which clashes with your attempt using
window.open
with
_self
. You can just add a
type="button"
attribute to the button to prevent that. Alternatively, you might want to consider using
window.location.href
instead:
JavaScript Window Location[
^]