Forcing DataBind On PageA From PageB

Posted on 2011-10-21
Last Modified: 2012-05-12
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?
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?
Question by:Donna Kainer
    LVL 33

    Accepted Solution

    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.

    Author Closing Comment

    by:Donna Kainer
    Abandon this question.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Top 6 Sources for Identifying Threat Actor TTPs

    Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

    In an ASP.NET application, I faced some technical problems. In this article, I list them out and show the solutions that I found.  I hope it will be useful. Problem: After closing a pop-up window, the parent page should be refreshed automaticall‚Ķ
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.

    737 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

    19 Experts available now in Live!

    Get 1:1 Help Now