Placeholder Question

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

  1. #1

    Default Placeholder Question

    Hi all,

    I have a placeholder control on an ASPX page. I
    dynamically add a button control to the placeholder from
    code - all is well with the world. Both the place holder
    and control have viewstate enabled, but on post back the
    control disappears from the placeholder. Am I missing
    something here or does the viewstate not persist the
    placeholders control collection?

    Thanks in advance pete.
    trinitypete Guest

  2. Similar Questions and Discussions

    1. placeholder error
      I am using DBD-Sybase 1.05-oc12.5.1. When running my script I get the following error: ct_result(ct_dynamic(CS_PREPARE)) returned -205 at...
    2. Usercontorl in a placeholder
      Hi, I am having this wierd issue. I have a usercontrol in a aspx page. Basically this user control has some labels and thats it. It has a printer...
    3. Events from a UserControl within a PlaceHolder
      Brief background: I have a page that loads n UserControls into a PlaceHolder control, where n corresponds to a number of inputs by the user. Each...
    4. Build control in a placeholder or like a placeholder
      Hi. I create a new custom control and it works fine. But now, I need to put it in any place on the page, like the placehold control do. Someone...
    5. 4GL V7.31 placeholder problem?
      Hi Testing 4GL V7.31 here, on HP-UX11i. The following code has worked in 4GL 6.05 thru 7.20 for over 7 years. Now in 7.31 it's failing at runtime...
  3. #2

    Default Re: Placeholder Question

    Any control that is added to the page dynaically will have to be readded on
    Page load. Page does not loose the view state but for the view state to work
    it has to recreate its original state first.

    --
    Naveen K Kohli
    [url]http://www.netomatix.com[/url]
    "trinitypete" <support@trinity.com> wrote in message
    news:09a201c33fbb$8b8ca370$a301280a@phx.gbl...
    > Hi all,
    >
    > I have a placeholder control on an ASPX page. I
    > dynamically add a button control to the placeholder from
    > code - all is well with the world. Both the place holder
    > and control have viewstate enabled, but on post back the
    > control disappears from the placeholder. Am I missing
    > something here or does the viewstate not persist the
    > placeholders control collection?
    >
    > Thanks in advance pete.

    Naveen K Kohli Guest

  4. #3

    Default Re: Placeholder Question

    Thanks for the info.

    Regards, Pete.
    >-----Original Message-----
    >Any control that is added to the page dynaically will
    have to be readded on
    >Page load. Page does not loose the view state but for the
    view state to work
    >it has to recreate its original state first.
    >
    >--
    >Naveen K Kohli
    >[url]http://www.netomatix.com[/url]
    >"trinitypete" <support@trinity.com> wrote in message
    >news:09a201c33fbb$8b8ca370$a301280a@phx.gbl...
    >> Hi all,
    >>
    >> I have a placeholder control on an ASPX page. I
    >> dynamically add a button control to the placeholder from
    >> code - all is well with the world. Both the place holder
    >> and control have viewstate enabled, but on post back the
    >> control disappears from the placeholder. Am I missing
    >> something here or does the viewstate not persist the
    >> placeholders control collection?
    >>
    >> Thanks in advance pete.
    >
    >
    >.
    >
    trinitypete 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