Wednesday, March 28, 2012

Web Control

Hello,

How can I send a control to a class as a property?
I don't know which control it would be. It could be a panel, a label ...

Thanks,
Miguel

send it as an object.

Zath


Hi,

And how to I find which type of control is it?

I need to add a child control to it.

Thanks,

Miguel


Try

Try

[sender].GetType().Name

where sender is the variable name of your object

0 comments:

Post a Comment