F
Federico
Hi everyone, the matter is about the property UserControl.ClientID.
I have an ASP.NET UserControl (called DateBox) which contains a TextBox
server control, and there is an aspx page that contains an instance of
DateBox. The page needs to put the focus into the DateBox; to do this I use a
little JScript routine, and when I prepare the routine code, of course I have
to know the ID of the HTML element; so I decided to expose the property
ClientID of the inner TextBox, and my idea was to override the
UserControl.ClientID base property. Niow the questions are:
1. Is it correct to override the UserControl.ClientID property, or I have to
define a new property for my pourpose?
2. Does ASP.NET use the UserControl.ClientID base property for some its own
pourpose?
Thanks in advance.
I have an ASP.NET UserControl (called DateBox) which contains a TextBox
server control, and there is an aspx page that contains an instance of
DateBox. The page needs to put the focus into the DateBox; to do this I use a
little JScript routine, and when I prepare the routine code, of course I have
to know the ID of the HTML element; so I decided to expose the property
ClientID of the inner TextBox, and my idea was to override the
UserControl.ClientID base property. Niow the questions are:
1. Is it correct to override the UserControl.ClientID property, or I have to
define a new property for my pourpose?
2. Does ASP.NET use the UserControl.ClientID base property for some its own
pourpose?
Thanks in advance.