DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Thu, 16 Aug 2007 18:20:10 -0700,    posted on: microsoft.public.dotnet.framework.aspnet.buildingcontrols        back       

Thread Index
  1    Mark


Inner content persistance   
In my custom control I am parsing sub properties between my controls tags. 
The elements in between the tags should form a collection property but will 
also contain controls themselves. In this scenario I am slightly confused as 
it appears you should use ParseChildren(true, "<defaultproperty>") when the 
inner content is to be parsed as properties or PersistChildren(true) when the 
inner content is to be parsed as controls. What if you want both conditions?

One way I have implemented this is to parse the inner contents using 
ParseChildren(true) and then to override CreateChildControls method and add 
the inner controls through the property collection to the control tree. When 
using ParseChildren(true) the method AddParseSubObject does not fire and 
therefore how should I inspect the contents between my tags when they are 
parsed so that I can test declarative attributes and raise exceptions if 
required. Should I be looking to override the ControlBuilder class?

Any help would be much appreciated.
Date:Thu, 16 Aug 2007 18:20:10 -0700   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us