Custom control not casting

  • Thread starter Thread starter BillGatesFan
  • Start date Start date
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?
 
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

Back
Top