I check all the ID type properties and they are all nothing. In the
property window is the name of the control but at run time there is no
name property. The ID and ClientID properties are set to nothing. This
is a class i wrote myself and is not inheiring anything. Its working as
designed except for the in ability to retrive the name at runtime.
Thanks for you response.
> I can't quite tell what situation you're talking about, but if you have a
> reference to a server-side control at runtime, you can use the ClientID property
[quoted text clipped - 11 lines]
> > this to tell the viewstate which version of the control's property is
> > being save/retrieved. Thanks.
Brock Allen - 20 Jul 2005 15:05 GMT
Maybe it's time to post a small snippet of your class' code to illustrate
the problem.
I just reread your post, and maybe your question could be rephrased as this:
I have a custom control saving data in ViewState using an ID such as "Text".
If I have 2 of these on the page, will those "Text" IDs in ViewState conflict?
If this is your question, then the answer is "no" they won't conflict. Each
control on the page has its own private ViewState collection to use and index
into however it wants to.
-Brock
DevelopMentor
http://staff.develop.com/ballen
> I check all the ID type properties and they are all nothing. In the
> property window is the name of the control but at run time there is no
[quoted text clipped - 18 lines]
>>> need this to tell the viewstate which version of the control's
>>> property is being save/retrieved. Thanks.