digitalZo
asked on
Force Control Refresh from External Window
Is there any way I can force refresh of a particular control from an external window such as an Iframe or Popup window?
ASKER
Thanks for the help. But i assume that would refresh the whole page. i dont want that to happen. only the control should refresh.
here the control is actually a dropdown. as soon as i close the frame, the dropdown should automatically refresh.
here the control is actually a dropdown. as soon as i close the frame, the dropdown should automatically refresh.
You can use Ajax on this.
Put your control in an updatepanel, then call a javascript function (when closing the form - shown in previous link) that updates the panel.
Have a look at http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/
HTH,
Karl
Put your control in an updatepanel, then call a javascript function (when closing the form - shown in previous link) that updates the panel.
Have a look at http://encosia.com/2007/07/13/easily-refresh-an-updatepanel-using-javascript/
HTH,
Karl
ASKER
No.AJAX.
Please suggest another solution. I really need it,
Please suggest another solution. I really need it,
Maybe you can put the control in an IFrame. Then let the form in your IFrame be submitted. The IFrame is posted back, the rest of the page not.
Don't know if it'll works, just a thought.
Karl
Don't know if it'll works, just a thought.
Karl
ASKER
<<<Maybe you can put the control in an IFrame. Then let the form in your IFrame be submitted. The IFrame is posted back, the rest of the page not.>>>
You did not seem to have understood my problem..
You did not seem to have understood my problem..
I do understand your problem, though.
But I think, to solve your problem, you should use AJAX, or post the entire page back. I don't think it't possible to refres one control on your form, without posting back the entire page, or using AJAX to rebind the data in your control...
Karl
But I think, to solve your problem, you should use AJAX, or post the entire page back. I don't think it't possible to refres one control on your form, without posting back the entire page, or using AJAX to rebind the data in your control...
Karl
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
If I use Sessions, it'll become a lot more complicated..
maybe this article can help you:
http://www.codeproject.com/KB/webforms/GridViewRefreshFromParent.aspx
the javascript part is the one you can use.
HTH,
Karl