i have a master page and aseries of controls labeled fn1, fn2, fn3 , ...
i want ot loop and use find control but i'm finding them.
i'm using the following w/o luck
ContentPlaceHol der cph =
(ContentPlaceHo lder)Page.Maste r.FindControl(" ContentPlaceHol der1");
for (int i = 0; i < 7; i++)
{
TextBox tbF = (TextBox)cph.Fi ndControl("tbFN " + i.ToString());
TextBox tbL = (TextBox)cph.Fi ndControl("tbLN " + i.ToString());
.........
}
they come up null
where are the controls located??
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)
kes
i want ot loop and use find control but i'm finding them.
i'm using the following w/o luck
ContentPlaceHol der cph =
(ContentPlaceHo lder)Page.Maste r.FindControl(" ContentPlaceHol der1");
for (int i = 0; i < 7; i++)
{
TextBox tbF = (TextBox)cph.Fi ndControl("tbFN " + i.ToString());
TextBox tbL = (TextBox)cph.Fi ndControl("tbLN " + i.ToString());
.........
}
they come up null
where are the controls located??
--
(i''ll be asking a lot of these, but I find C# totally way cooler than vb
and there''s no go''n back!!!)
thanks (as always)
kes
Comment