Advertisement

05.25.2008 at 10:37AM PDT, ID: 23431430
[x]
Attachment Details

Force gridview on web page to refresh.

Asked by wsturdev in Microsoft Visual Basic.Net

Tags: , ,

I have a web page "PgA" with a GridView.  I open another page "PgB" in a new window.  On PgB, they do some things that affect the underlying data for the GridView on PgA.  When the user is done with PgB, they click a button that executes this VB:
     Protected Sub Close_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Close.Click
        'Do some stuff
        Response.Write("<script language='javascript'> { window.close();}</script>")
        'What code goes here to force the GridView on PgA to refresh?
    End Sub
Now, because some of what they did on PgB has affected the underlying data for the GridView on PgA, I need to cause the GridView to refresh, without reloading the entire page.
In VB, what code do I use?Start Free Trial
[+][-]05.25.2008 at 12:36PM PDT, ID: 21643493

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Microsoft Visual Basic.Net
Tags: VB.Net, GridView, Refresh
Sign Up Now!
Solution Provided By: raja_ind82
Participating Experts: 1
Solution Grade: A
 
 
[+][-]05.26.2008 at 04:52AM PDT, ID: 21645832

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.26.2008 at 01:42PM PDT, ID: 21648018

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_EXPERT_20070906