I have page with other asp.net page inside iframe.
And on button click inside iframe i need to refresh main page from server side.
How can it?
I have page with other asp.net page inside iframe.
And on button click inside iframe i need to refresh main page from server side.
How can it?
Make use of javascript and you can easily do it
call the following function on your button click
From the cs code if you are opening the aspx page in the iframe
For some reason the javascript function shown in earlier answers did not work for me (although the function was called). However, this worked for me:
I had to add it near the start of my HTML (near the end of the HTML didn't work, as it was not yet rendered).
I used this C# code to call it, which is based on earlier answers but updated to use the current API which has an extra initial paramter, "type":
Its explained very well in the following links:
link 1
link 2
Hope it helps.