i think i found a better solution.. We can do in Page_init Method...
ASP.NET pages automatically bind page events to methods that have the name
Page_event. This automatic binding is configured by the AutoEventWireup
attribute in the @ Page directive, which is set to true by default. If you
set AutoEventWireup to false, the page does not automatically search for
methods that use the Page_event naming convention.
http://msdn2.microsoft.com/en-us/library/6w2tb12s.aspx
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us> wrote
in message news:u$**************@TK2MSFTNGP03.phx.gbl...
Hi,
You have to recreate them in the postback
--
--
Ignacio Machin,
ignacio.machin AT dot.state.fl.us
Florida Department Of Transportation
"Vishal Gupta" <vi**********@acs-inc.com> wrote in message
news:eo*************@TK2MSFTNGP03.phx.gbl... Hi all,
I have a placeholder control on an ASPX page. I
dynamically add a few button control and label control to the placeholder
from
code - all is well with the world. But on post back the
control disappears from the placeholder. Am I missing
something here
Please help
Vishal Gupta