P
Paul Aspinall
Hi
I'm having trouble trying to use FindControl with a FormView, but can't seem
to find what I'm doing wrong....
I have a TextBox in my ItemTemplate, and I want to assign a value to it, in
code...
I'm trying:
((TextBox)FormView1.FindControl("TextBox1")).Text = "Sample value";
The error reported is 'Object reference not set to an instance of an
object.'
Any ideas?
Thanks
I'm having trouble trying to use FindControl with a FormView, but can't seem
to find what I'm doing wrong....
I have a TextBox in my ItemTemplate, and I want to assign a value to it, in
code...
I'm trying:
((TextBox)FormView1.FindControl("TextBox1")).Text = "Sample value";
The error reported is 'Object reference not set to an instance of an
object.'
Any ideas?
Thanks