Hi Nick,
I've emailed you.
Cheers
"Nick" <> wrote in message
news:O%...
> What was it Paul?
>
> I get the same error.
>
> Cheers,
>
> Nick
>
> "Paul Aspinall" <> wrote in message
> news:k7%Lf.69977$. uk...
>> Doh - Fixed it...
>>
>> Thanks anyway
>>
>> Paul
>>
>> "Paul Aspinall" <> wrote in message
>> news:lXYLf.69245$. uk...
>>> I've tried it in a few places, prerender, load, databinding etc.
>>>
>>> No joy anywhere.
>>>
>>> Has anyone actually managed to do this in C#??
>>>
>>> Thanks
>>>
>>> "Patrick.O.Ige" <> wrote in message
>>> news:%...
>>>> Paul where are you doing that?
>>>> Patrick
>>>> **It seems it can't find the control
>>>>
>>>>
>>>> "Paul Aspinall" <> wrote in message
>>>> news:UHVLf.54378$ k...
>>>>> 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
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
|