G
Guest
I broke a complex page into two user controls within a container .aspx thinking I would make it more manageable
UserControl1 contains a datagrid. Upon clicking a row on this grid I want to make the container and UserControl2 aware
of the selected key ID from the code below. This ID will be used to perform a query in UserControl2 and perform and XSL Transform
Code within UserControl1
-----------------------
private void dgGrid1_ItemCommand(Object src, DataGridCommandEventArgs e
if (e.Item.ItemIndex >= 0)
//--Get the posted values from the datagrid..
dgGrid1.SelectedIndex = e.Item.ItemIndex
string sId = dgGrid1.DataKeys[e.Item.ItemIndex].ToString()
Bascially, I have these specific questions
Where and how do I make the Container and UserControl2 aware of this ID?
If so, can I get this ID in the Page_Load during the PostBack of the container? This event occurs after the page_load
Thanks, Dave
UserControl1 contains a datagrid. Upon clicking a row on this grid I want to make the container and UserControl2 aware
of the selected key ID from the code below. This ID will be used to perform a query in UserControl2 and perform and XSL Transform
Code within UserControl1
-----------------------
private void dgGrid1_ItemCommand(Object src, DataGridCommandEventArgs e
if (e.Item.ItemIndex >= 0)
//--Get the posted values from the datagrid..
dgGrid1.SelectedIndex = e.Item.ItemIndex
string sId = dgGrid1.DataKeys[e.Item.ItemIndex].ToString()
Bascially, I have these specific questions
Where and how do I make the Container and UserControl2 aware of this ID?
If so, can I get this ID in the Page_Load during the PostBack of the container? This event occurs after the page_load
Thanks, Dave