Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1383
  • Last Modified:

Frames in aspx.

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
Fraser_Admin
Asked:
Fraser_Admin
  • 2
1 Solution
 
Walter RitzelSenior Software EngineerCommented:
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
 
Fraser_AdminAuthor Commented:
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
 
Walter RitzelSenior Software EngineerCommented:
You can post the code here?  So, I can look what is happening.

0
 
LindzKCommented:
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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now