Refresh a parent page from a child iframe, with codebehind
two pages
1. Parent page = "TaskSummary.aspx"-Summary with data in grid
2. iframe = "CreateTask.aspx" -New Task Creation page with save button .When i close save button from popup page ,i want to refresh TaskSummary.aspx page grid
Loading
Rijwan AnsariPosted Nov 6, 2023, 3:49 PM
Using Codebehind
RefreshParent()method when clicked. For exampleRijwan AnsariPosted Nov 6, 2023, 3:46 PM
You can refresh with JavaScript.
Add below JavaScript into Parent Page
In child iFrame, call the JavaScript.
You can also use the
postMessage()method to communicate between the parent page and the child iframe. To do this, you would first send a message from the child iframe to the parent page indicating that you want to refresh the page. The parent page would then receive the message and call therefreshParent()function.