I have a ASPX page with a repeater control and inside of ItemTemplate I put the user control. I would like to access to the repeater properties and method in the codebehind of the user control.
<asp:Repeater ID="newsRepeater" runat="server">
<ItemTemplate>
<uc1:MyControl runat="server" id="my_control" .......
Codebehind of the user control:
public partial class my_control : System.Web.UI.UserControl
{
string str = newsRepeater.ID??? (Something like that)
}
How can I do that?
<asp:Repeater ID="newsRepeater" runat="server">
<ItemTemplate>
<uc1:MyControl runat="server" id="my_control" .......
Codebehind of the user control:
public partial class my_control : System.Web.UI.UserControl
{
string str = newsRepeater.ID??? (Something like that)
}
How can I do that?