Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open new window from code-behind

I need to open a new window from code-behind on post-back if a specific radio button is selected.

Is there any way to do this?

Thank you.

like image 703
janhartmann Avatar asked Mar 01 '23 17:03

janhartmann


1 Answers

You can use RegisterStartupScript to send a window.open script to run once the page has loaded.

However, this will cause the majority of popup blockers to get in your way.

like image 200
Robin Day Avatar answered Mar 11 '23 11:03

Robin Day