I meant I wanted to pass a control from the page. But I re-thought and later handled this problem differently with two methods.
>>Hi everybody,
>>
>>I want to create a method that would receive a special control as a parameter or would not receive anything (should receive null). How can I define this control parameter?
>>
>>Thanks in advance.
>
>What do you mean by control (or control parameter)?
>As long as it is not a value type you can set it to null
>
>public void MyMethod(MyClass myClass)
>{
>//do something
>}
>
>to call MyMethod you can use
>MyMethod(new MyClass);
>or
>MyMethod(null);
If it's not broken, fix it until it is.
My Blog