Click here to Skip to main content
15,906,569 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello All,

I have a user control with a gridview and a button to open pop up window.

In the pop up window I fill data to a data table.
I want to fill the grid (using that datatable) after closing popup but I dont want to postback the grid page.

How can I fill the grid without postback?

Please help me.

Thanks in Advance.
Posted
Updated 6-Jun-11 22:13pm
v5
Comments
RakeshMeena 7-Jun-11 0:13am    
Can you post what you have tried till now.
Dalek Dave 7-Jun-11 3:19am    
Edited for Grammar, Syntax and Readability.

The best method is to use an update pannel in this case the page uses ajax so the it would be a partial post back Click Here
 
Share this answer
 
Comments
faezeh66 7-Jun-11 0:16am    
i have a update panel ,but how to fill grid?i filling grid by postback?now how to filling grid without postback?
Steven.Pinto2000 7-Jun-11 6:22am    
see the best way is to keep a hidden button and on the close of the window
call the click of the button which would in turn update the grid
Dalek Dave 7-Jun-11 3:19am    
Good Call
try this


in page directive put 'smartnavigation="true" ;
 
Share this answer
 
Also look at these articles:
Partial update of parent page via AJAX (ASP.NET 2.0) on close of a child window - conditionally[^]
ClientCallback custom control for web applications[^]

They will give you ideas on how to refresh/refill grid data from client side.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900