Question Locked

asp.net: access user control data from parent page

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
i have a user controls which has a gridview. the grid view gets populated when the parent page loads. i want to access the selected row data key value in the parent page, but the on selecting a row the control first goes to the parents load method then into the user controls load method and then finally into gridview's selectedindexchanged method....hence i always end with the values of the previous selection....plz help

2 replies

by y2ksundara

1. Move the gridview's selectedindexchanged to the parent page.
or
2. Raise another event in the gridview's selectedindexchanged and handle that event by subscribing to that event in Parent page.

This discussion is closed to new replies.