Click here to Skip to main content
15,911,030 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How to display gridview in popup window and when user clicks on selcted row the data should be set to dropdownlist

please someone suggest me a suitable answer.
thank u
Posted
Updated 21-Aug-13 22:56pm
v3
Comments
Maciej Los 22-Aug-13 5:22am    
And where is a problem? What have you done so far? Where are you stuck?
Shibasankar 23-Aug-13 1:22am    
Thanks to respond,
Actually, I am opening the new window on button click, after clicking the row in gridview, the value is not firing and popup window is not disappearing..

1 solution

Design a page with Gridview.
Open the page as popup page using window.open()
In popup page, store the selected row value in state(Ex. Session)
C#
Session["SelValue"] = "";//selected row value

Close the popup using window.close()
Using opener.reload you could reload the parent page
In parent page, get the value from session & assign the value as selected in dropdownlist.
C#
dropdownlist.SelectedValue = Session["SelValue"].ToString()
 
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