Actually, you missed the property runat="server" on your tag.
When using FormView1.FindControl("ShipAddressID"), your control must be a
server control, otherwise it won't be find by your code behind.
On Fri, Feb 5, 2010 at 7:42 AM, Jamie Fraser <[email protected]> wrote:
> FormView1.FindControl("ShipAddressID")
>
> You are nearly there - what you need to do is fine the ID of the actual
> control you want - although you gave the input an ID of "ShipAddressID",
> you'll find that this is rendered out as something differently - I've seen
> things like
>
> ctl00__formview1__shipaddressId
>
> Dependant on your nesting, use of master pages etc.
>
> Have a look at the rendered HTML to find the actual control name.
>
> btw, off topic, but the phrase you used "user could care less about" is
> wrong, the correct usage is "user couldn't care less about" as they have
> diametric meanings!
>
> On Thu, Feb 4, 2010 at 1:49 PM, Chatur <[email protected]>wrote:
>
>> FormView1.FindControl("ShipAddressID")
>>
>
>
--
Atenciosamente,
Paulo Roberto S. Pellucci