Custom control not casting

B

BillGatesFan

I have a custom composite control which was made from a textbox control
on my ASPX page. Why when I find the control using Page.FindControl, it
is coming up as a regular system.ui.webcontrol.textbox control and not
my custom control? I cannot even cast to my control. And when I cast to
a regular textbox no error is generated but it does not work. Has
anyone had this problem?
 
D

Daniel Fisher\(lennybacon\)

Custom control vs Composite

Use a CustomControl and all is fine.
 

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
473,772
Messages
2,569,593
Members
45,108
Latest member
AlbertEste
Top