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

I'm doing ERP project where there are 2 pages namely 'Parent.aspx' and 'PopUp.aspx'.
In simple sentence my requirement is I want to 'Bind datatable object of popup window to a gridview of parent page'.

Plz.. Help me.
Posted

Bind datatable object of popup window to a gridview of parent page.
There are multiple ways to achieve it:
1. Use any one of the state management techniques that would work. Example - Session. Store the datatable in it in popup and later use it in your parent page
2. Use ShowModalDialog that allows a return value on close. Use this as a parameter and pass the datatable to parent for use.

Try!
 
Share this answer
 
If I am understanding you question correctly ..
First a popup is opened from parent page . In popup page a datatable object got created . Now probably
> after closing the popup you want that datatable object to persist and bind it to dataview
or
>by some event performed in pop of parent window you want created datable to bin to dataview of parent.

Soln.
Keep the Datatable in session when it's created in pop up. No you can use javascript to refresh the parent window
> on pop closing or
> on some action performed on popup.

On parent window put to code the code to check the session if datable is present and bind it.
 
Share this answer
 
Comments
kumarvijaya 24-May-12 12:10pm    
Thanks for your response...
I like to achieve this using Javascript.. If you have code sample plz give me..

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