M
Muckeypuck
hello, i would like to write a function that takes a webcontrol type as a
parameter and returns an array of controls based on the type
some thing like:
GetAllControls(typeof(system.web.ui.webcontrols.textbox)) 'returns textboxes
GetAllControls(typeof(system.web.ui.webcontrols.dropdownlist)) 'returns
dropdowns
GetAllControls(typeof(system.web.ui.webcontrols)) 'returns everything
however i can not find the proper way to write the signature
Public sub GetAllControls(Byref tType as ??????????)
thanks
parameter and returns an array of controls based on the type
some thing like:
GetAllControls(typeof(system.web.ui.webcontrols.textbox)) 'returns textboxes
GetAllControls(typeof(system.web.ui.webcontrols.dropdownlist)) 'returns
dropdowns
GetAllControls(typeof(system.web.ui.webcontrols)) 'returns everything
however i can not find the proper way to write the signature
Public sub GetAllControls(Byref tType as ??????????)
thanks