Refresh GridView from another page

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • David C

    Refresh GridView from another page

    I have an aspx page with a GridView named gvTasks that has a linkbutton on
    each row that calls up another pop-up window using the following js
    function:

    function openTask(id, coid)
    {
    var surl = "TaskEdit.aspx? id=" + id + "&coid=" + coid;
    void
    window.open(sur l,null,"height= 400,width=600,s tatus=yes,toolb ar=no,menubar=n o,location=no") ;
    return false;
    }

    Since that pop-up page changes data I would like to have the GridView
    refreshed when I close the TaskEdit.aspx pop-up window. Is there any way to
    do this in asp.net? Thanks.

    David


  • Stan

    #2
    Re: Refresh GridView from another page

    On 18 Mar, 19:09, "David C" <dlch...@lifeti meinc.comwrote:
    I have an aspx page with a GridView named gvTasks that has a linkbutton on
    each row that calls up another pop-up window using the following js
    function:
    >
        function openTask(id, coid)
        {
            var surl = "TaskEdit.aspx? id=" + id + "&coid=" + coid;
            void
    window.open(sur l,null,"height= 400,width=600,s tatus=yes,toolb ar=no,menubar=n ­o,location=no" );
            return false;
        }
    >
    Since that pop-up page changes data I would like to have the GridView
    refreshed when I close the TaskEdit.aspx pop-up window.  Is there any way to
    do this in asp.net?  Thanks.
    >
    David
    How about using the Server.Transfer () method from TaskEdit.aspx to
    call the host page for gvTasks?

    Comment

    • David C

      #3
      Re: Refresh GridView from another page

      How would that help? Remember, the opener page (with GridView) stays active
      during this whole time so how could I do a Server.Transfer to an already
      open web page? Thanks.

      David
      "Stan" <google@philpha ll.me.ukwrote in message
      news:428d1170-f786-40f0-ab4e-211b2727ced6@h1 1g2000prf.googl egroups.com...
      On 18 Mar, 19:09, "David C" <dlch...@lifeti meinc.comwrote:
      I have an aspx page with a GridView named gvTasks that has a linkbutton on
      each row that calls up another pop-up window using the following js
      function:
      >
      function openTask(id, coid)
      {
      var surl = "TaskEdit.aspx? id=" + id + "&coid=" + coid;
      void
      window.open(sur l,null,"height= 400,width=600,s tatus=yes,toolb ar=no,menubar=n ­o,location=no" );
      return false;
      }
      >
      Since that pop-up page changes data I would like to have the GridView
      refreshed when I close the TaskEdit.aspx pop-up window. Is there any way
      to
      do this in asp.net? Thanks.
      >
      David
      How about using the Server.Transfer () method from TaskEdit.aspx to
      call the host page for gvTasks?


      Comment

      Working...