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: 262
  • Last Modified:

Forcing DataBind On PageA From PageB

On PageA I have a Repeater (Repeater1) which displays data from a SQL table and allows me to add (insert) data to that table. When I go through the insert code I am sent to PageB which allows me to add additional information associated to the data I entered on PageA to other tables. Because some of the additional informaton entered on PageB is in the repeater data on PageA:

1) I need PageB to rebind the data to the Repeater (Repeater1) on PageA. Is it possible for PageB to issue a command to rebind the PageA repeater data?
or
2) I need PageA, when it gets focus (or becomes active) to automatically rebind the data. Is there a PageA.OnFocus type of event that automatically activates when you return to PageA?
0
Donna Kainer
Asked:
Donna Kainer
1 Solution
 
raterusCommented:
How is PageB actually loaded?  Are you using a popup of some sort?  Do you ever have both pages open at the same time?

If you are using a popup, and it sounds like you are, you can use on PageB (javascript) opener.someFunctionOnPageA() before the page closes

The "someFunctionOnPageA()" will be the difficult part, my suggestion to keep it simple is have this function click a button that posts back the page and causes the record to update.
0
 
Donna KainerAuthor Commented:
Abandon this question.
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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