A
Alan Silver
Hello,
If I have a control in the header template of a repeater, how do I get
at this in code? I know how to do this for an ItemTemplate, you just
do...
txtFred = (TextBox)rptNpVars.Items.FindControl("txtFred");
where i is the index of the item. How do I do a similar thing for the
header? Following a post I found in the archives, I tried ...
txtFred = (TextBox)rptNpVars.Controls[0].FindControl("txtFred");
but this gave an error "Specified argument was out of the range of valid
values. Parameter name: index".
Thanks for any help.
If I have a control in the header template of a repeater, how do I get
at this in code? I know how to do this for an ItemTemplate, you just
do...
txtFred = (TextBox)rptNpVars.Items.FindControl("txtFred");
where i is the index of the item. How do I do a similar thing for the
header? Following a post I found in the archives, I tried ...
txtFred = (TextBox)rptNpVars.Controls[0].FindControl("txtFred");
but this gave an error "Specified argument was out of the range of valid
values. Parameter name: index".
Thanks for any help.