Error Creating Control

N

Neil

I have created an asp.net user control which uses a template, in Source view
the template is being shown and I can add asp.net code to it but when I
switch to Design view it says:

Error creating control- pnlHello

Type 'System.Web.UI.UserControl' does not have a public property named
'PanelTemplate'

(but it is all fine in Source view. I used C# to code the control- any
suggestions?)
 
R

Riki

Neil said:
I have created an asp.net user control which uses a template, in
Source view the template is being shown and I can add asp.net code to
it but when I switch to Design view it says:

Error creating control- pnlHello

Type 'System.Web.UI.UserControl' does not have a public property named
'PanelTemplate'

(but it is all fine in Source view. I used C# to code the control- any
suggestions?)

How dit you create the PanelTemplate?

How to create a templated user control:
http://leedale.wordpress.com/2007/08/11/creating-a-templated-user-control-with-aspnet-20/
 

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,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top