Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Web custom controls issue

Reply
Thread Tools

Web custom controls issue

 
 
Emanuele
Guest
Posts: n/a
 
      02-01-2007
Hi all,
i am developing a web custom control. Basically it's something like a
listbox, a bit enhanced. i have some problem when i have to add items to the
controls. this is the basic structure of the control:

CREATECHILDCONTROLS (method)
create the child controls of the component.
add the items inserted (if i don't add them here, i can't handle item
events)

RENDERCONTENTS
render the control and each item i have inserted.

---- IMPLEMENTATION IN A WEBFORM ---

the control is added in a Webform, and from a dorpdownlist the user can
choose which "set" of items explore. obviously, in the SELECTEDINDEXCHANGED
event of the dropdownlist i populate the custom control, but i can't see
anything.

i have found the problem: the items contained are not rendered because the
CREATECHILDCONTROLS is called before the SELECTEDINDEXCHANGED, thus i don't
have items added and created in the controls collection of the custom
control...

can anyone help me, please? i really don't know how to manage it...
 
Reply With Quote
 
 
 
 
Thomas Hansen
Guest
Posts: n/a
 
      02-02-2007
On Feb 1, 3:46 pm, Emanuele <Emanu...@discussions.microsoft.com>
wrote:
> Hi all,
> i am developing a web custom control. Basically it's something like a


Might be off topic, but you do realize that there's commercial and
open source solutions available for mostly everything you
could possibly imagine in a "drop down list"...??
Oe of them is http://ajaxwidgets.com which has an AutoCompleter
control, fully ajax enabled...

..t

--
http://ajaxwidgets.com
Free ASP.NET Ajax Widgets NOW!

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
databound custom controls vs composite databound custom controls rodchar ASP .Net 0 11-26-2007 03:51 PM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net 5 01-10-2007 10:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Web Controls 4 12-21-2006 02:50 AM
Using Web.config's <system.web><pages><controls><add /></controls></pages></system.web> To Register UserControls Nathan Sokalski ASP .Net Building Controls 4 12-21-2006 02:50 AM
IntelliSense on Web User Controls and Web Custom Controls Axel Dahmen ASP .Net 1 11-12-2003 06:12 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57