Error Creating Control

Discussion in 'ASP .Net Web Controls' started by Neil, Aug 27, 2007.

  1. Neil

    Neil Guest

    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?)
    Neil, Aug 27, 2007
    #1
    1. Advertising

  2. Neil

    Riki Guest

    Neil wrote:
    > 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/

    --

    Riki
    Riki, Aug 27, 2007
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Ravi Ambros Wallau
    Replies:
    0
    Views:
    4,070
    Ravi Ambros Wallau
    Jun 1, 2005
  2. =?Utf-8?B?RGF2ZQ==?=
    Replies:
    1
    Views:
    7,457
    =?Utf-8?B?RGF2ZQ==?=
    Jul 20, 2006
  3. Madison
    Replies:
    0
    Views:
    308
    Madison
    Mar 23, 2009
  4. Deniz Miscioglu
    Replies:
    1
    Views:
    152
    Deniz Miscioglu
    Oct 19, 2003
  5. Ravi Ambros Wallau
    Replies:
    0
    Views:
    294
    Ravi Ambros Wallau
    Jun 1, 2005
Loading...

Share This Page