J
J055
Hi
I can't figure out what the difference is here. Sometimes I have a simple
FormView control in a page and I can use the FormView.FindControl method to
get a Label or TextBox with in it during the DataBound event. Then I can use
a FormView somewhere else and the FindControl method can't find any of the
inner controls. I get a NullReferenceException.
I always check to see which Template is loaded first. I know that if you
loop through the FormView controls you get a ChildTable first but why can I
use FindControl sometimes to return an object but not others?
Thanks
Andrew
I can't figure out what the difference is here. Sometimes I have a simple
FormView control in a page and I can use the FormView.FindControl method to
get a Label or TextBox with in it during the DataBound event. Then I can use
a FormView somewhere else and the FindControl method can't find any of the
inner controls. I get a NullReferenceException.
I always check to see which Template is loaded first. I know that if you
loop through the FormView controls you get a ChildTable first but why can I
use FindControl sometimes to return an object but not others?
Thanks
Andrew