Hi TS,
Thanks for your posting. I've also found your other posts regarding on
creating custom webcontrol in the asp.net and sub groups. For the question
you mentioned here, is the control you mentioned also a composite control
which just create some other buildin asp.net controls and add them into the
composite control's Controls collection?
If so, since the buildin existing ASP.NET controls are all well implemented
which has the correctly method to help store and retain the
states/properties between postback, so if we just add those controls as sub
controls in composite control, we don't need to manually do the states
maintain task. In fact, for those interfaces such as
"IPostBackEventHandler" or "IPostBackDataHandler", generally they're only
used for very basic controls from scratch.
Thanks,
Steven Cheng
Microsoft Online Support
Get Secure!
www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)
--------------------
| From: "TS" <
[email protected]>
| Subject: why does my control retain its value after postback
| Date: Tue, 2 Aug 2005 08:42:05 -0500
| Lines: 10
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.aspnet.buildingcontrols
| NNTP-Posting-Host: 103nat100.tea.state.tx.us 198.214.103.100
| Path: TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP10.phx.gbl
| Xref: TK2MSFTNGXA01.phx.gbl
microsoft.public.dotnet.framework.aspnet.buildingcontrols:3968
| X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet.buildingcontrols
|
| i am not implementing any state mechanisms or IPostBackEventHandler in my
| control, but when my asp.net page accesses the control, the data that was
| there from the last time i loaded the control on the previous page load,
is
| still there.
|
| Is the page handing the control's state or what?
|
| thanks
|
|
|