Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Force Control Refresh from External Window

Posted on 2008-06-21
9
Medium Priority
?
402 Views
Last Modified: 2008-08-11
Is there any way I can force refresh of a particular control from an external window such as an Iframe or Popup window?
0
Comment
Question by:digitalZo
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 4
9 Comments
 
LVL 7

Expert Comment

by:kGenius
ID: 21837123
Hi,

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
0
 
LVL 10

Author Comment

by:digitalZo
ID: 21837242
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.
0
 
LVL 7

Expert Comment

by:kGenius
ID: 21837336
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
0
Build and deliver software with DevOps

A digital transformation requires faster time to market, shorter software development lifecycles, and the ability to adapt rapidly to changing customer demands. DevOps provides the solution.

 
LVL 10

Author Comment

by:digitalZo
ID: 21837838
No.AJAX.

Please suggest another solution. I really need it,
0
 
LVL 7

Expert Comment

by:kGenius
ID: 21837942
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
0
 
LVL 10

Author Comment

by:digitalZo
ID: 21843869
<<<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..
0
 
LVL 7

Expert Comment

by:kGenius
ID: 21844558
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
0
 
LVL 10

Accepted Solution

by:
digitalZo earned 0 total points
ID: 21844807
Can you suggest an alternative? Like any other logic, apart from using AJAX?

I want a dropdown 'BC' to update with the data that is coming from an IFrame and keep it as selected. When other dropdowns do autopostback, the data of the dropdown 'BC' should remain intact. this is actualyl what i want.
0
 
LVL 10

Author Comment

by:digitalZo
ID: 21844813
If I use Sessions, it'll become a lot more complicated..
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to prepare an HTML email signature template file containing dynamic placeholders for users' Azure AD data. Furthermore, it explains how to use this file to remotely set up a department-wide email signature policy in Office …
A while back, I ran into a situation where I was trying to use the calculated columns feature in SharePoint 2013 to do some simple math using values in two lists. Between certain data types not being accessible, and also with trying to make a one to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question