Hey Joachim
If I understand you correctly you want to know the type of a control given
its name.
Given the contril is called Button2, You could try this:
string typeName = Page.FindControl("Button2").GetType().Name;
This will return "Button"
Hope that helps

Signature
Bits. Bytes.
http://bytes.thinkersroom.com
------------------------------
> How can you find a control's type in ASP .NET (using C#, in Page_Load
> function) if you only know the control's name?
Joachim - 17 Nov 2006 15:07 GMT
Perfect! Thanks!
> Hey Joachim
>
[quoted text clipped - 11 lines]
> > How can you find a control's type in ASP .NET (using C#, in Page_Load
> > function) if you only know the control's name?