Tags

,

On custom WebPart I have a button, on click of button redirecting to another page using SPUtility.Redirect function. SPUtility.Redirect will redirect to same page, but my requirement is to redirect to new window. Added following OnClientClick property to button and it now redirects to new window.

OnClientClick=”aspnetForm.target =’_blank’;”

Advertisements