add, edit using drop down boxes and list boxes 
Author Message
 add, edit using drop down boxes and list boxes

howz it goin,

I am working on a site which has a lot of products and i am making the
orders page. I want to list the products in a dynamic drop down menu and
have an add button next to it.

when the user clicks on the button, the product gets added to a list. The
user can select any item from the list and delete it as well.

links to any resources or tutorials on this would be greatly appreciated.

cheers
Suman
Website Design and Multimedia
http://www.*-*-*.com/



Fri, 05 Nov 2004 03:13:11 GMT  
 add, edit using drop down boxes and list boxes
If the items listed in the dropdown box are retrieved from the back-end
database, a common way to implement your task is to cause the page to be
submitted to the server each time the button is clicked. On the
server-side, you can use the ADO to process the add/delete by interacting
with the database and then repopulate the dropdown list using the
Response.Write. For example, on server side you can repopulate the dropdown
list as follows:

<%
Respose.Write "<select>"
Respose.Write "<option value='1'>first</option>"
'...
Response.Write </select>"

%>

Gary

This posting is provided "AS IS", with no warranties, and confers no
rights. Enjoyed ASP.NET? http://www.asp.net



Sat, 06 Nov 2004 20:42:21 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. Drop Down List Box - Drop Down portion does not always disappear after Click event

2. using Array from script in html drop down list box

3. using Array from separate script in html drop down list box

4. List box with embeded drop down boxes

5. Dynamically populate drop down list box using webclasses

6. drop down edit boxes and filling them from a db

7. changing the item of drop down box when focus is in the text box

8. Open drop-down list in select box

9. dim() in html drop down list box

10. Drop-Down list box

11. Open drop-down list in select box

12. Adding items to a drop down box.

 

 
Powered by phpBB® Forum Software