Solved

Frames in aspx.

Posted on 2004-08-10
4
1,375 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
[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
  • 2
4 Comments
 
LVL 16

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 16

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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Any business that wants to seriously grow needs to keep the needs and desires of an international audience of their websites in mind. Making a website friendly to international users isn’t prohibitively expensive and can provide an incredible return…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?
This tutorial walks through the best practices in adding a local business to Google Maps including how to properly search for duplicates, marker placement, and inputing business details. Login to your Google Account, then search for "Google Mapmaker…
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.

732 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