On my webpage, I have a textarea running at the server, prompting users to add serial numbers. I wan to use the user input to populate an array, a vector, or a stack (in general, a container) in my c# codefile.
I have my text area with attributes: id="serialno_textbox" and runat="server". In my codefile, I currently have a string called serialno = serialno_textbox.Value. I have called a stack called serial_numbers but not initialized them.
<textarea id="serialno_textbox" rows="10" cols="50" runat="server">Enter Serial Numbers separated by spaces</textarea>
string serialno = serialno_textbox.Value;
Stack<string> serial_numbers;
if the user inputs something such as
serialnumber1 serialnumber2 serialnumber3
which is essentially just strings of numbers and letters separated by spaces, then I which the outcome to be that the stack's contents are
Stack<string> serial_numbers = {serialnumber1 serialnumber2 serialnumber3}