Ask a Question related to ASP.NET General, Design and Development.
-
szabelin #1
Child Controls => Postback? => null?
Hi
there were a few postings earlier, including mine
regarding this. It looks as if when a dynamic child
control causes a postback, its handler never gets called,
and the control is null. This seems wierd. What about
bubbing events to parents in DataGrid - if events are
never even triggered? Can somebody explain this please.
Thank you
Sergey
szabelin Guest
-
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 -
HELP! Child controls of child controls not visible to web app
I have a custom server control. It's a TabControl. It's really cool, actually. Looks just like a standard VB6 TabControl. It lets you set the... -
Child window property window.opener null after postback
I have an webform from which I open a child window to display a calendar. When a date is selected in the calendar window it attempts to set the... -
Accessing values of child controls after postback
Hi! I have a placeholder to which i add a Table with 2 columns. In one of the columns are textboxes with an unique ID (box1, box2, .... boxN).... -
user controls: dynamiclly added child controls dont survive post back ?
hi, i have some strange behaviour: i've created a web user control that add's some child controls (e.g: textbox, image buttons) to its control... -
Jos #2
Re: Child Controls => Postback? => null?
"szabelin" <szabelin@szabelin> wrote in message
news:05cf01c35591$df0ebdd0$a501280a@phx.gbl...> Hi
>
> there were a few postings earlier, including mine
> regarding this. It looks as if when a dynamic child
> control causes a postback, its handler never gets called,
> and the control is null. This seems wierd. What about
> bubbing events to parents in DataGrid - if events are
> never even triggered? Can somebody explain this please.
I'm guessing that you're not recreating your dynamic
child controls on postback. Only when they are recreated
the handler can be called.
If this is the case, the way to go is:
1) recreate the dynamic child controls in the same way
(same ID's) as before the postback
2) handle the postback
3) at the end of the postback handler, if necessary,
destroy the child controls again and create other ones.
--
Jos Branders
Jos Guest



Reply With Quote

