Add/Remove type control for Web pages?
-
Before I re-invent the wheel, I thought I'd ask if anyone knew of such a beast. I've tried searching Google for various combinations of 'add', 'remove', 'listbox', 'asp.net', and I've only managed to find WinForm controls (see: http://www.vbdotnetheaven.com/UploadFile/mgold/AddRemoveUserControls04262005080452AM/AddRemoveUserControls.aspx[^]) For those that don't want to click the link, I'm basically looking for a control that has a list of items in listbox1 and buttons to move selected items to listbox 2. The main difficulty I find in doing it myself is getting the layout to work properly. I'm assuming you'd need to use CSS positioning to get everything lined up properly.
Josh Find a penny, pick it up, and all day long you'll have a back-ache...
-
Before I re-invent the wheel, I thought I'd ask if anyone knew of such a beast. I've tried searching Google for various combinations of 'add', 'remove', 'listbox', 'asp.net', and I've only managed to find WinForm controls (see: http://www.vbdotnetheaven.com/UploadFile/mgold/AddRemoveUserControls04262005080452AM/AddRemoveUserControls.aspx[^]) For those that don't want to click the link, I'm basically looking for a control that has a list of items in listbox1 and buttons to move selected items to listbox 2. The main difficulty I find in doing it myself is getting the layout to work properly. I'm assuming you'd need to use CSS positioning to get everything lined up properly.
Josh Find a penny, pick it up, and all day long you'll have a back-ache...
Those things are javascript driven and are as old as dirt. Search for javascript code to do this, not ASP.NET code.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
-
Those things are javascript driven and are as old as dirt. Search for javascript code to do this, not ASP.NET code.
Christian Graus Please read this if you don't understand the answer I've given you "also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
I'm aware that the actual code to implement the functionality would be client side javascript. My main problem (which I probably didn't state clearly, and why I was looking for a control someone had already created) was how to actually create the layout of the control in a web application. I'm not very familiar with CSS positioning, but I'm assuming that is what I would need to get the control layout to mimic what can be done just by dragging the buttons around on a WinForm application. Perhaps since this is a CSS/positioning question, it might be better for another forum, but since I was looking for control that someone might have already created, I wanted to look here first. I've managed to create the layout using tables, so I guess that will be good enough.
Josh Find a penny, pick it up, and all day long you'll have a back-ache...