473,782 Members | 2,664 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Refresh/Databind a GridView on another page

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.

Dec 23 '07 #1
3 3899
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.ope ner" object from the popup window...

All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
"Dave" <Da**********@j acobs.comwrote in message
news:3b******** *************** ***********@b40 g2000prf.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.
Dec 24 '07 #2
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]" <Co****@SUNALI. comwrote in message
news:#O******** ******@TK2MSFTN GP06.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.ope ner" object from the popup window...

All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
"Dave" <Da**********@j acobs.comwrote in message
news:3b******** *************** ***********@b40 g2000prf.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.
Dec 26 '07 #3
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.******@hotma il.comwrote in message
news:7D******** *************** ***********@mic rosoft.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]" <Co****@SUNALI. comwrote in message
news:#O******** ******@TK2MSFTN GP06.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.ope ner" object from the popup window...

All the best,
Coskun SUNALI
MVP ASP/ASP.NET
http://sunali.com
"Dave" <Da**********@j acobs.comwrote in message
news:3b******* *************** ************@b4 0g2000prf.googl egroups.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.
Dec 26 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
1809
by: buzz | last post by:
How can I refresh one webpage from another? Many Thanks in Advance
3
10831
by: FN | last post by:
I know how to do an HTML content redirection (e.g. in 5 seconds you'll be redirec to...) but... I have a javascript countdown timer. It goes for a few hours. At the end, I want to dispaly "times up", wait 10 more seconds, and then redirect to another page. Is there a javascript way to do this, and would it work going back to IE4 and NN4.5?
5
2423
by: Dan | last post by:
We have a simple site. It's a frameset with two frames a left and a right. The left frame is essentially a list of records from a database (using a server-side repeater control). When you click on one of the items in the left frame, it targets the right frame and displays a form prefilled with information for the item you clicked. The problem is the left frame's list just shows the names of the items, and the name of the item is...
3
11605
by: Carlos | last post by:
Hi all, I would like to know what is the most efficient way to redirect a gridview containing data to another page. It is kind of confirming an order which just needs to be re-displayed. Can anyone help? Thanks in advance,
1
2219
by: M0RACING | last post by:
Very new to Javascript. I have a page that loads on an authentication failure (PKI failure). The problem is that the server thinks that the user is not authenticated and automatically pulls this failure page up. On the failure I have put a refresh on there, once the page refreshes, the server does see the user's CAC is insterted it allows the user to hit the webserver. What I want to add on this form is a Javascript refresh (if the server...
2
2542
by: Mic | last post by:
Hi, I have a GridView control that gets populated at runtime and I need to print its content. The simplest way I found was to use window.print() but this prints everything on the page. But if I can send the GridView content (or copy the GridView) to another page, I then can use window.print() in that other page. How can I do that ?
2
3355
by: Astrix | last post by:
I have been working on session timeout for an application and I got a lot of help from this discussion Board. My Thanks to all of you. For e.g If i have a website which has multiple pages, I open the first page and then log to the second page and so forth.. Don't session timeout value get reset each time we go to another page ? I have noticed that if i go to the initial page and keep pressing F5
3
10357
by: mathewgk80 | last post by:
Hello, I would like to know how to pass values of a gridview to another page when clicking on the link field in a gridview. Please help me. regards, Mathew
2
2863
by: dougancil | last post by:
I have a page with a gridview and I want to pass the value when a user clicks on a hyperlinked field in the grid to another page. Here is the code for the gridview: <asp:GridView ID="GridView1" runat="server" HorizontalAlign="Center" AutoGenerateColumns="False" DataSourceID="SqlDataSource1"> <Columns> <asp:BoundField DataField="SchedName" HeaderText="SchedName" ...
0
9639
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9474
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10308
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10076
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7486
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5375
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4040
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2870
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.