Go Back   Velocity Reviews > General Computer Discussion > Software
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
Old 04-18-2008, 11:28 AM   #1
Default Custom control dropdownlist - need advice


I'm building a custom control (ASP.NET 1.1 / C#) that contains a number of dropdownlists. I'm fairly new to custom controls and am having trouble understanding a couple of things. I'm adding the DDLs as part of the CreateChildControls method and binding their data at the same time but on postback these DDLs have an item count of zero again. Is it possible to persist the state of a control added in this way across postbacks? What I don't understand is that if I re-bind the DDL on postback then its SelectedIndex is set to the posted value at some point between the end of CreateChildControls and Render. Is it possible to have a custom control containing a dropdownlist which only needs to be bound once on the initial load...?


tcstom
tcstom is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamically added TreeNode Control not render my custom attribute venkyzealous Software 0 05-10-2008 03:46 PM
Mind Control and CIA'S BOURNE IDENTITY PLOT soleilmavis@gmail.com DVD Video 2 08-03-2007 09:54 PM
Getting error in Custom control ShakilaRahmanLaboni Software 2 08-01-2007 02:38 PM
Ajax Atlas not working in User Control faiq Software 0 09-16-2006 08:28 AM
FS: JP1 cable to program your universial remote control, now youcan control anything you want! Mike DVD Video 0 07-15-2005 02:46 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

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