Email lists > ASP dotNET controls building > Composite Control > Composite Control

Composite Control




This post if a part of  this thread

2006-12-04 04:37:01
Composite Control
Sounds like its not properly being serialised and/or parsed
within the
designer.

Make sure when you set the properties, the appropriate
markup is set in the
source view. Additionally, make sure your code parses this
markup correctly
(I suspect this is where its not working). So when it reads
the markup that
defines the control, its not properly reading the values and
setting these
properties.

- Glav

-----Original Message-----
From: Bilal Haidar [MVP] [mailto:bhaidargmail.com] 
Sent: Saturday, 2 December 2006 2:32 AM
To: aspnet-controlbuildingaspadvice.com
Subject: [aspnet-controlbuilding] RE: Composite Control

Hello Fred:

What I have is a ListBox within a composite control. I have
exposed the
whole control via a proeprty. So, if I change for example
the Items
property, they are shown now on the IDE, but when I run the
page, the items
inside the ListBox which is inside the composite control are
not shown!

I have read some articles today which says, it is better not
to expose the
whole list as a proeprty but rather selective properties!!

Thanks


On 12/1/06, Fred Hartzler <fredfhcc.com> wrote:
>
> I program in Delphi. If I add items to a list in the
designer, they are
> added to the aspx source. Do you see the items there?
>
> In general, when data is not displayed it is because
there is no
> "databind" command associated with the
control or page. Do you have a
> "if not isPostBack then databind" statement
in the PageLoad event?
>
> -----Original Message-----
> From: Bilal Haidar [MVP] [mailto:bhaidargmail.com]
> Sent: Thursday, November 30, 2006 4:01 PM
> To: aspnet-controlbuildingaspadvice.com
> Subject: [aspnet-controlbuilding] Composite Control
>
> Hello:
>
> I am developing a composite control, mover control,
where I have two
> listboxes (xListBox) that I have developed and
published on
> ASPAlliance.comwhere it saves any changes on the
client, my only issue
> is that:
>
> I have exposed two public properties, one for the Left
Listbox and one
> for
> the right Listbox. Both properties are "get"
properties.
>
> If I bind data to those listboxes programmatically, it
works fine! If I
> use
> the Property window to add items to the Listboxes, they
are being added
> on
> the Designer view, but when the page runs, the items
are not shown.
>
> Any ideas in this?
>
> Regards
>
>
>
> Need SQL Advice? http://sqladvice.com
> Need RegEx Advice? http://regexadvice.com
> Need XML Advice? http://xmladvice.com
>
>
>
>
> Need SQL Advice? http://sqladvice.com
> Need RegEx Advice? http://regexadvice.com
> Need XML Advice? http://xmladvice.com
>



Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com



Need SQL Advice? http://sqladvice.com
Need RegEx Advice? http://regexadvice.com
Need XML Advice? http://xmladvice.com

about | contact  Other archives ( Real Estate discussion Medical topics )