G
Guest
I have two repeaters in a page... how do i access textbox values of one
repeater from another? for example if i have repeater 1: rptIssue repeater2:
rptReturn
I want to bind the textbox values from repeater1 in repeater2.
Here is what i am donig.. but i can't access the repeater1 controls in
repeater2: ..
public void rptReturn_ItemDataBound(object s, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
TextBox txtReceiveBy =
(TextBox)e.Item.FindControl("txtReceivedBy");
//this textbox is in repeater1 but can't access it
}
}
Many thanks in advance.
repeater from another? for example if i have repeater 1: rptIssue repeater2:
rptReturn
I want to bind the textbox values from repeater1 in repeater2.
Here is what i am donig.. but i can't access the repeater1 controls in
repeater2: ..
public void rptReturn_ItemDataBound(object s, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType ==
ListItemType.AlternatingItem)
{
TextBox txtReceiveBy =
(TextBox)e.Item.FindControl("txtReceivedBy");
//this textbox is in repeater1 but can't access it
}
}
Many thanks in advance.