asp.net - how to open a popup windows and cause a full postback in the parent window after closing the popoup -


In ASP.net, I want to click on a button to open a popup window. After the popup window, I want to do a full postback in the original window.

How can I do this?

Thanks in advance.

Write the script below on your popup:

  window.opener. PostBack (); // Where is the custom method of Postback Opener / Parent Window   

You can either call it at OnUnload () in the event of your popup or window.close () After any other method; .

You can apply the PostBack () method to the opener:

  Function Postback () {var btn = document.getElementById ('& Lt;% = SomeButton.ClientID% & gt; '); If (btn) btnclic (); // or // __do postback ('SomeButtonId', 'logic'); }    

Comments

Popular posts from this blog

java - NullPointerException for a 2d Array -

python - Assemble mpeg file unable to play in mediaplayer -

c# - NameSpace Manager or XsltContent to parse aspx page -