473,396 Members | 1,992 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Refresh frame from another one

All,

Who knows how can we refresh a secondary frame automatically if we do a
postback on the primary frame clicking some button control? Do we have any
meta tags to do that automatically or any other trick?

I saw that one guy was placing a hidden link button and used some trick with
__postback to simulate this button click from his code. It's not very
flexible way, but actually do we have anything else?

The reason is simple. I need that to refresh the datagrid on the second
frame when I did some changes to the data on the primary frame and I need
the secondary frame to be refreshed automatically. There is a very bad way
to add an auto refresh tag because it will require a lot of trips to the
server and back, that's originally a bad idea. From the other side using
this way the data will not be refreshed automatically at the same time as
the changes are made.

Dmitri.
Nov 19 '05 #1
1 1661
RegisterStartupScript() is your friend here... use something like the
following code during your postback on the primary frame:

string scriptString = "<script
language=JavaScript>parent.OtherFrameName.location .reload(true)</script>";
if(!this.IsClientScriptBlockRegistered("clientScri pt")){
this.RegisterStartupScript("clientScript", scriptString);
}
-HTH


"Just D." <no@spam.please> wrote in message
news:SZ16e.43660$lz2.20250@fed1read07...
All,

Who knows how can we refresh a secondary frame automatically if we do a
postback on the primary frame clicking some button control? Do we have any
meta tags to do that automatically or any other trick?

I saw that one guy was placing a hidden link button and used some trick
with __postback to simulate this button click from his code. It's not very
flexible way, but actually do we have anything else?

The reason is simple. I need that to refresh the datagrid on the second
frame when I did some changes to the data on the primary frame and I need
the secondary frame to be refreshed automatically. There is a very bad way
to add an auto refresh tag because it will require a lot of trips to the
server and back, that's originally a bad idea. From the other side using
this way the data will not be refreshed automatically at the same time as
the changes are made.

Dmitri.

Nov 19 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Boniface Frederic | last post by:
Hello, I have frame displaying the last posted messages. I set <meta http-equiv="refresh" content="5"/> to automatically refresh the frame every 5s My problem is; if I scroll the frame to see...
1
by: WL Yang | last post by:
Hi all, I am a new comer, and also a beginner for web page making. I am making a page with 2 frame, a button was added on the left-side frame( called frame1 ) to reload the page on the...
0
by: Vinay | last post by:
Hi All: I have a frameset page that displays 2 aspx pages (right and left). In the one on the left I have a list box that is populated by values from the DB. When the user clicks on the items in...
4
by: Alejandro Narancio | last post by:
Hi, i have this situation. One page open another page in a separated instance of the browser, i neek to refresh every five minutes the first page but without take the focus, anybody know how can i...
5
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click...
1
by: mailing | last post by:
Hello, I am hoping that someone can point me in the right direction. I have 4 frames to my site. Two Rows, Two Columns. |--------------------------------|-------------------------| | ...
8
by: Veerle | last post by:
Suppose having a frameset consisting of two frames, both with dark background colors. One of the frames is a sort of menu and the other one contains the content. When someone clicks a menu item in...
19
by: Justin | last post by:
Harlow... i need some help on these... im actually trying to do a page using php... the function is to receive certain parameters from a 3rd party provider... and i need to redirect my page to...
5
by: Kaante | last post by:
Hi, I basically have two frames on my page, the top one contains users stats and the bottom frame contains the website. I want to have a message icon on the top frame which would flash once the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.