Solved

Frames in aspx.

Posted on 2004-08-10
4
1,366 Views
Last Modified: 2010-08-05
I have two frames:
FrameA, FrameB

both frames are .aspx pages.  When something happens in frame B I would like to call a server side function in frame A to refresh the results.  ie. Frame A is a list of records, a new record is inserted into Frame B I would like this record to appear in Frame A listing.

0
Comment
Question by:Fraser_Admin
  • 2
4 Comments
 
LVL 15

Expert Comment

by:Walter Ritzel
Comment Utility
Although you are working with ASP.NET, the same old rules for frames are still valid: if you want to refresh a frame, with data from server side, you must to reload the frame. In ASP or PHP works on the same way, because this is not related to the server side programming, it is related to HTML.

Hope this helps,

Walter.
0
 

Author Comment

by:Fraser_Admin
Comment Utility
I've found that if the last thing I did was a button click and I reload the frame, the button click event is fired again.  Is there anyway to get around this?
0
 
LVL 15

Expert Comment

by:Walter Ritzel
Comment Utility
You can post the code here?  So, I can look what is happening.

0
 
LVL 5

Accepted Solution

by:
LindzK earned 500 total points
Comment Utility
You shouldnt' have to reload the whole frame, just the target frame  for example at the point where you want to refresh the data in frame A  type :


Response.Write("<script>window.open("PageName.aspx","FrameA")</script>")

With frameA being the target frame

This should leave frame B as it is, and only reload frame A.

If you want to ensure that only a certain portion of the code in page(frame) a is loaded, then pass in a parameter,   such as "pagename.aspx?data=refresh"   Then on page load in page a, test for the parameter being passed, using the request object.

Hope this helps
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Uploading files to the web server has become common part of almost any kind of web application. People use different technologies to solve this, but regardless of the technology used, it is always useful to have some kind of progress indicator shown…
Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
The viewer will get a basic understanding of what section 508 compliance can entail, learn about skip navigation links, alt text, transcripts, and font size controls.

763 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now