Child control renders at desing-time as if it is in run-time...

Ask a Question related to ASP.NET Building Controls, Design and Development.

  1. #1

    Default Child control renders at desing-time as if it is in run-time...

    Hi, I have a problem with design-time. The problem is rather hard to
    describe in a few sentences ... so I hope someone will reply asking for more
    info. For the start here's the situation (striped down to what I believe is
    crucial)

    1. I have a custom "ReadWriteControlDesigner" type of control (you can drop
    controls on it .. much like Panel). I'm using rendering (not composition).
    Since ReadWriteControlDesigner has its flaws, the control does not render
    100% at design time (expected) when dropped on a form (since some more
    controls are added in RenderBeginTag - for the run-time experience). I can
    live with that.

    2. When this Child is placed in some other container control (composite
    control, NOT ReadWriteControlDesigner) .. the Child control appears at
    design-time as it appears at run-time.

    Now, this produces some weird results...

    p.s.
    The true problem is when the Child control uses composition (along with
    ReadWriteControlDesigner) ... at design time all child controls (of the
    Child) get persisted in designer .. which leads to bad parsing .. so to
    speak

    p.s.2
    I know one *should not* use composition along with PersistChildren(true) and
    ParseChildren(false). I'm just not sure if this is "should not" or "must
    not".

    Anybody?

    ~Zarko


    Zarko Gajic Guest

  2. Similar Questions and Discussions

    1. Control.Controls bug? Control's child controls missing at the run time.
      Hello, ..NET 1.1/VB.NET: I have a custom web control Public Class DatePicker Inherits Control Implements INamingContainer
    2. Custom control renders table but doesn't resize at design time.
      Hi all, I have a control, that basically is my own version of the datagrid, except that is renderers purely readonly tabular information. When...
    3. Get Child Controls at design-time
      I have a Webcontrol that was supposed to act like a panel control. I manipulated a TemplatedControlDesigner to make an "Edit mode". I save my...
    4. Composite WebControl -- Child Control Property Persistance at Design-time
      Hi, I seen, this asked a number of times at this group but still have not seen any complete/rectified/fixed code. I have created a Composite...
  3. #2

    Default Re: Child control renders at desing-time as if it is in run-time...

    Anybody?

    Come on MVP's ... :)

    ~Zarko

    "Zarko Gajic" <ssppaamm_zarko@mono.hr> wrote in message
    news:OfhilIKKFHA.1812@TK2MSFTNGP15.phx.gbl...
    > Hi, I have a problem with design-time. The problem is rather hard to
    > describe in a few sentences ... so I hope someone will reply asking for
    more
    > info. For the start here's the situation (striped down to what I believe
    is
    > crucial)
    >
    > 1. I have a custom "ReadWriteControlDesigner" type of control (you can
    drop
    > controls on it .. much like Panel). I'm using rendering (not composition).
    > Since ReadWriteControlDesigner has its flaws, the control does not render
    > 100% at design time (expected) when dropped on a form (since some more
    > controls are added in RenderBeginTag - for the run-time experience). I can
    > live with that.
    >
    > 2. When this Child is placed in some other container control (composite
    > control, NOT ReadWriteControlDesigner) .. the Child control appears at
    > design-time as it appears at run-time.
    >
    > Now, this produces some weird results...
    >
    > p.s.
    > The true problem is when the Child control uses composition (along with
    > ReadWriteControlDesigner) ... at design time all child controls (of the
    > Child) get persisted in designer .. which leads to bad parsing .. so to
    > speak
    >
    > p.s.2
    > I know one *should not* use composition along with PersistChildren(true)
    and
    > ParseChildren(false). I'm just not sure if this is "should not" or "must
    > not".
    >
    > Anybody?
    >
    > ~Zarko
    >
    >

    Zarko Gajic Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139