I have an input type text and a button in an asp.net page and I want to add a Listbox to the page. I also want to add the value of the textbox to the Listbox when I click the button
<button id="ajouter" type="button" >Ajouter au panier</button>
<input class="text" id="Num" type="text" name="Num" />
Can someone help me and explain how to define listbox in the page and how to add the text from the textbox to the listbox when the button is clicked.