HighTechTalks DotNet Forums  

Refresh/Databind a GridView on another page

ASP.net ASP.net discussions (microsoft.public.dotnet.framework.aspnet)


Discuss Refresh/Databind a GridView on another page in the ASP.net forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Dave
 
Posts: n/a

Default Refresh/Databind a GridView on another page - 12-23-2007 , 09:29 AM






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.


Reply With Quote
  #2  
Old   
Coskun SUNALI [MVP]
 
Posts: n/a

Default Re: Refresh/Databind a GridView on another page - 12-24-2007 , 06:16 PM






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" <Dave.Burkett (AT) jacobs (DOT) com> wrote

Quote:
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.



Reply With Quote
  #3  
Old   
 
Posts: n/a

Default Re: Refresh/Databind a GridView on another page - 12-26-2007 , 04:54 AM



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]" <Coskun (AT) SUNALI (DOT) com> wrote

Quote:
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" <Dave.Burkett (AT) jacobs (DOT) com> wrote in message
news:3bb7e24c-4c48-4789-86df-35731e93a9e7 (AT) b40g2000prf (DOT) googlegroups.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.



Reply With Quote
  #4  
Old   
Coskun SUNALI [MVP]
 
Posts: n/a

Default Re: Refresh/Databind a GridView on another page - 12-26-2007 , 10:09 AM



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



<l.holota (AT) hotmail (DOT) com> wrote

Quote:
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]" <Coskun (AT) SUNALI (DOT) com> wrote in message
news:#ORaDMoRIHA.2208 (AT) TK2MSFTNGP06 (DOT) 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" <Dave.Burkett (AT) jacobs (DOT) com> wrote in message
news:3bb7e24c-4c48-4789-86df-35731e93a9e7 (AT) b40g2000prf (DOT) googlegroups.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.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.