Solved

Frames in aspx.

Posted on 2004-08-10
4
1,369 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
ID: 11761733
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
ID: 11762552
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
ID: 11762775
You can post the code here?  So, I can look what is happening.

0
 
LVL 5

Accepted Solution

by:
LindzK earned 500 total points
ID: 11762954
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
Get to know the ins and outs of building a web-based ERP system for your enterprise. Development timeline, technology, and costs outlined.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
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.

911 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

20 Experts available now in Live!

Get 1:1 Help Now