Templated Web custom control and templates

Discussion in 'ASP .Net Web Controls' started by Robert Koritnik, May 10, 2004.

  1. If I inherit my templated data-bound control the design time doesn't
    recognize my templates. They are all null. But if I inherit from WebControl
    things work ok, but I don't need all those properties that WebControl give
    me.

    I have my custom control designer because of the datasource property.

    Any clues how to bind Templates so they would be recognized?

    Robert.
     
    Robert Koritnik, May 10, 2004
    #1
    1. Advertisements

  2. One more thing. I actually copied the code from the MSDN how to make a
    templated web custom control. Including the designer. I just inherited from
    Control instead of WebControl.

    PLEASE Help me... I'm getting deseprate after two days....

    "Robert Koritnik" <> wrote in message
    news:...
    > If I inherit my templated data-bound control the design time doesn't
    > recognize my templates. They are all null. But if I inherit from

    WebControl
    > things work ok, but I don't need all those properties that WebControl give
    > me.
    >
    > I have my custom control designer because of the datasource property.
    >
    > Any clues how to bind Templates so they would be recognized?
    >
    > Robert.
    >
    >
     
    Robert Koritnik, May 10, 2004
    #2
    1. Advertisements

  3. Thanks anyways. Found the problem. To put it correctly. the explanation in
    MSDN seems somehow unanderstandible so I instantiated with wrong parameters.

    Robert

    "Robert Koritnik" <> wrote in message
    news:...
    > One more thing. I actually copied the code from the MSDN how to make a
    > templated web custom control. Including the designer. I just inherited

    from
    > Control instead of WebControl.
    >
    > PLEASE Help me... I'm getting deseprate after two days....
    >
    > "Robert Koritnik" <> wrote in message
    > news:...
    > > If I inherit my templated data-bound control the design time doesn't
    > > recognize my templates. They are all null. But if I inherit from

    > WebControl
    > > things work ok, but I don't need all those properties that WebControl

    give
    > > me.
    > >
    > > I have my custom control designer because of the datasource property.
    > >
    > > Any clues how to bind Templates so they would be recognized?
    > >
    > > Robert.
    > >
    > >

    >
    >
     
    Robert Koritnik, May 13, 2004
    #3
    1. Advertisements

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. Earl Teigrob
    Replies:
    2
    Views:
    564
    Earl Teigrob
    Jun 8, 2004
  2. JKop
    Replies:
    3
    Views:
    689
  3. Replies:
    0
    Views:
    2,441
  4. recover
    Replies:
    2
    Views:
    1,065
    recover
    Jul 25, 2006
  5. Replies:
    2
    Views:
    598
  6. Alessandro Zifiglio

    Deleting controls at designtime in web Custom templated control

    Alessandro Zifiglio, Dec 13, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    238
    Alessandro Zifiglio
    Dec 13, 2003
  7. MattC

    Custom Templated Databound Control or derived control?

    MattC, Nov 23, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    322
    MattC
    Nov 23, 2005
  8. Weston Weems

    Designing templated control's templates

    Weston Weems, Jun 20, 2005, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    171
    Weston Weems
    Jun 20, 2005
Loading...