Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
2.33/5 (3 votes)
See more:
I have two pages the first one has a gridview and the second is a form to fill a new record ... simply the second one is a popup.
I want after bind data in first page after filling data in the popup page

how should I do this?
thanks
Posted
Comments
S@53K^S 9-Apr-12 12:19pm    
is this in ASP.NET or winForms ?If ASP.NET save all the values to session and retrieve from session and bind it to the grid.

If windows save all the values to a global class and then use the class to bind values to parent form
qusai84 15-Apr-12 7:58am    
it's ASP.NET, thank you but I'm looking for a way to bind or refresh the gridview in parent page

1 solution

Wow -- I don't know who gave you a 5 rating for this question!!!!

First of all you don't specify the platform other than in your See more: list.
Second you don't indicate if you are using any patterns.

For Example: If you are using MVVM with Silverlight or WPF then the answer is very clear: use dependancy injection and inject the same view model into your popup window as you are binding your main page to.
 
Share this answer
 
Comments
qusai84 15-Apr-12 8:03am    
dear SASS,
it's a asp.net web form ...

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