Groups | Blog | Home
all groups > asp.net building controls > august 2003 >

asp.net building controls : save control state and display it after postback


mamil NO[at]SPAM bezeqint.net
8/30/2003 1:54:02 PM
[quoted text, click to view]

How do you create those listboxes? Do you add them in the
junk qwe
8/30/2003 2:44:53 PM


yes i use the CreateChildControls method to
add all the elements in the control


*** Sent via Developersdex http://www.developersdex.com ***
Uri
8/30/2003 8:28:50 PM
Hi,
i built a control which contains two listbox controls and two buttons which
uses to transfer elements from one listbox to the other and back.
i used the buttons click events to transfer the selected item from one list
to the other
but when returning from the sever the lists items are gone.
how do i save the items through postback ?


Teemu Keiski
8/31/2003 11:33:36 AM
Yyou could check how Andy Smith has implemented his DualList control (which
is similar control than yours)
http://www.metabuilders.com/Tools/DualList.aspx

--
Teemu Keiski
MCP, Designer/Developer
Mansoft tietotekniikka Oy
http://www.mansoft.fi

AspInsiders Member, www.aspinsiders.com
ASP.NET Forums Moderator, www.asp.net
AspAlliance Columnist, www.aspalliance.com

[quoted text, click to view]

Jimmy [Used-Disks]
9/4/2003 6:19:17 PM
[quoted text, click to view]

They should save automatically if EnableViewState is true... you may be
overrwriting them when you do the transfer. When/where are you transferring
the items? Also, could you post the code you use to do the transfer?

--
-Jimmy
Used-Disks:
http://www.used-disks.com/

AddThis Social Bookmark Button