Unable find the Control type of Checkbox List in the Controls collection

P

Paulraj Thomas

Hi all

I'm looping through all the controls in the webform and setting properites dynamically by identifying th
type of control using the Get.Type(). I can find out all the controls correctly except checkboxlist control
which is returning the type wrong as "System.Web.UI.WebControls.CheckBox" instead of "System.Web.UI.WebControls.CheckBox" In this scenario, i need to differciate between Checkbox and
CheckboxList. Is the known bug in asp.net or there is any other way i can get control type. Let me know.

Here is the code how i'm getting the control type in the loop
ctlType = ctrlCurrent.GetType().ToString(

Thanks
Paul
 
A

Alvin Bruney [MVP]

Your post went unanswered. Have you resolved this issue?

--
Regards,
Alvin Bruney [ASP.NET MVP]
Got tidbits? Get it here...
http://tinyurl.com/3he3b
Paulraj Thomas said:
Hi all,

I'm looping through all the controls in the webform and setting properites dynamically by identifying the
type of control using the Get.Type(). I can find out all the controls
correctly except checkboxlist control
which is returning the type wrong as "System.Web.UI.WebControls.CheckBox"
instead of "System.Web.UI.WebControls.CheckBox" In this scenario, i need to
differciate between Checkbox and
CheckboxList. Is the known bug in asp.net or there is any other way i can
get control type. Let me know..
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,102
Messages
2,570,638
Members
47,244
Latest member
Robertfem

Latest Threads

Top