Tuesday, July 17, 2018

Fancy Box-Refresh parent page and close iframe popup from Server Side(C# and Vb.net)

I have a scenario in which i need to close Popup forcefully when the user hit save or reject button and refresh the parent page.
just add this line on button click

//parent.showloader() is my loder function in my main page to show loading image

ClientScript.RegisterStartupScript([GetType](), "Javascript", "parent.$.fancybox.close(); parent.showloader(); parent.location.reload(true);", True)


No comments:

Post a Comment