Refresh/Databind a GridView on another page

Refresh/Databind a GridView on another page

am 23.12.2007 15:29:00 von dave

I have an GridView on one page that will open a popup for the selected
record. I've been told that there is a way that when the popup record
is updated the GridView can be refreshed or Databind.

I've been looking for the answer with no luck. I'm probably just not
asking the question correctly. Thanks for any assistance.

Re: Refresh/Databind a GridView on another page

am 25.12.2007 00:16:10 von Coskun

Hi Dave,

Have you been able to look around using the capabilities of Microsoft Ajax?
Putting your GridView inside an UpdatePanel control and firing the refresh
(via a Callback) with a basic javascript function that will be called using
the "window.opener" object from the popup window...

All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com


"Dave" wrote in message
news:3bb7e24c-4c48-4789-86df-35731e93a9e7@b40g2000prf.google groups.com...
>I have an GridView on one page that will open a popup for the selected
> record. I've been told that there is a way that when the popup record
> is updated the GridView can be refreshed or Databind.
>
> I've been looking for the answer with no luck. I'm probably just not
> asking the question correctly. Thanks for any assistance.
>

Re: Refresh/Databind a GridView on another page

am 26.12.2007 10:54:13 von l.holota

You can do it easier, using javascript simply refresh the window with
gridview and add Grid.DataBind() method on Page Load. If you use MS AJAX,
your visitors will have to download 400KB javascript file on each page...it
stays in cache, but if you need only bind a grid it's unnecessary.

Regards,

Lukas Holota

"Coskun SUNALI [MVP]" wrote in message
news:#ORaDMoRIHA.2208@TK2MSFTNGP06.phx.gbl...
> Hi Dave,
>
> Have you been able to look around using the capabilities of Microsoft
> Ajax? Putting your GridView inside an UpdatePanel control and firing the
> refresh (via a Callback) with a basic javascript function that will be
> called using the "window.opener" object from the popup window...
>
> All the best,
> Coskun SUNALI
> MVP ASP/ASP.NET
> http://sunali.com
>
>
> "Dave" wrote in message
> news:3bb7e24c-4c48-4789-86df-35731e93a9e7@b40g2000prf.google groups.com...
>>I have an GridView on one page that will open a popup for the selected
>> record. I've been told that there is a way that when the popup record
>> is updated the GridView can be refreshed or Databind.
>>
>> I've been looking for the answer with no luck. I'm probably just not
>> asking the question correctly. Thanks for any assistance.
>>
>

Re: Refresh/Databind a GridView on another page

am 26.12.2007 16:09:35 von Coskun

Hi,

That is an another idea but obviously more expensive concidering the
performance and if you imagine that the page is around 100KB and the client
causes 5 refreshes - which is a normal amount of refresh if s/he want to
edit some data - it will use more than 400KB bandwidth.

In addition, refreshing the grid on every postback may also cause a
performance problem due to the page might be refreshed for some other
reasons rather than refreshing the data within the grid.

--
All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com



wrote in message
news:7D5EC26C-C28C-4473-8476-287D22A428C8@microsoft.com...
> You can do it easier, using javascript simply refresh the window with
> gridview and add Grid.DataBind() method on Page Load. If you use MS AJAX,
> your visitors will have to download 400KB javascript file on each
> page...it stays in cache, but if you need only bind a grid it's
> unnecessary.
>
> Regards,
>
> Lukas Holota
>
> "Coskun SUNALI [MVP]" wrote in message
> news:#ORaDMoRIHA.2208@TK2MSFTNGP06.phx.gbl...
>> Hi Dave,
>>
>> Have you been able to look around using the capabilities of Microsoft
>> Ajax? Putting your GridView inside an UpdatePanel control and firing the
>> refresh (via a Callback) with a basic javascript function that will be
>> called using the "window.opener" object from the popup window...
>>
>> All the best,
>> Coskun SUNALI
>> MVP ASP/ASP.NET
>> http://sunali.com
>>
>>
>> "Dave" wrote in message
>> news:3bb7e24c-4c48-4789-86df-35731e93a9e7@b40g2000prf.google groups.com...
>>>I have an GridView on one page that will open a popup for the selected
>>> record. I've been told that there is a way that when the popup record
>>> is updated the GridView can be refreshed or Databind.
>>>
>>> I've been looking for the answer with no luck. I'm probably just not
>>> asking the question correctly. Thanks for any assistance.
>>>
>>