Building child controls on Design Time

P

Pradeep Kumar C

Hi ,
I am trying to create a custom control similar to datagrid.Grid contain
some thing like data column where i am able to add column during design time
using VS.NET 2003 collection editor , but on clicking the save button the
corresponding innercontrol is not return on the aspx page. But I can
instantiate the corresponding control details in the code behind page.

It will be appreciable if any body can give a solution for this.


Thanks and Regards,
Pradeep
 
S

Steven Cheng[MSFT]

Hi Pradeep,

Not sure what's your detailed code for the certain control. But I think you
can have a look at the TreeView control(IE WebControls)'s source code for
reference since the IE WebControl's code are all open source. The TreeView
has a "Nodes" member collection wihch may be similiar to your question.
You can download the IE WebControl's source at http://www.asp.net

also, here are some other tech articles on asp.net web control dev and
designtime support:

#HOW TO: Create a Web Control with an Expandable Property in the Designer
by Using Visual C# .NET
http://support.microsoft.com/?id=324301

#Templated Data-Bound Control Sample
http://msdn.microsoft.com/library/en-us/cpguide/html/cpcontemplateddatabound
controlsample.asp?frame=true

#PersistenceMode Enumeration
http://msdn.microsoft.com/library/en-us/cpref/html/frlrfsystemwebuipersisten
cemodeclasstopic.asp?frame=true

Thanks.

Regards,

Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Get Preview at ASP.NET whidbey
http://msdn.microsoft.com/asp.net/whidbey/default.aspx
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top