Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / December 2007

Tip: Looking for answers? Try searching our database.

Refresh/Databind a GridView on another page

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Dave - 23 Dec 2007 14:29 GMT
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.
Coskun SUNALI [MVP] - 24 Dec 2007 23:16 GMT
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

>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.
l.holota@hotmail.com - 26 Dec 2007 09:54 GMT
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

> Hi Dave,
>
[quoted text clipped - 14 lines]
>> I've been looking for the answer with no luck.  I'm probably just not
>> asking the question correctly.  Thanks for any assistance.
Coskun SUNALI [MVP] - 26 Dec 2007 15:09 GMT
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.

Signature

All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.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,
[quoted text clipped - 24 lines]
>>> I've been looking for the answer with no luck.  I'm probably just not
>>> asking the question correctly.  Thanks for any assistance.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.