please clear this doubt
-
How to get multiple inputs in textbox at run time and how it will display output in listbox
-
How to get multiple inputs in textbox at run time and how it will display output in listbox
-
Could you please elaborate on what you mean by "get multiple inputs in textbox at run time".
i want to store multiple inputs at run time in the text box and displays the output in listbox...
for this am using for loop to get multiple inputs and how can i store it???
i placed two text boxes , one for getting name and other for age... am going to give multiple persons name and age and am going to display it in list box... what shall i do for this????
-
i want to store multiple inputs at run time in the text box and displays the output in listbox...
for this am using for loop to get multiple inputs and how can i store it???
i placed two text boxes , one for getting name and other for age... am going to give multiple persons name and age and am going to display it in list box... what shall i do for this????
Still don't get what it is you want to achieve. You have two textboxes: one representing a name and the other represents age. You want to display the name and the age in a listbox - I assume this is not causing you any problems? You say you have a for-loop "to get multiple inputs". What do you mean by this? Perhaps you better post the code that doesn't work..
-
How to get multiple inputs in textbox at run time and how it will display output in listbox
Do not double post - either post this in QA or the forums - not both. Otherwise you duplicate work and annoy people.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
-
i want to store multiple inputs at run time in the text box and displays the output in listbox...
for this am using for loop to get multiple inputs and how can i store it???
i placed two text boxes , one for getting name and other for age... am going to give multiple persons name and age and am going to display it in list box... what shall i do for this????
Drop the loop. Use a Button instead. Label it "Add". On a user's click on your AddButton, copy the current values of your input fields to the ListBox. Then clear the input fields and set focus on the first one. That way, users can type in names and click on the AddButton as often as they want. If you want to restrict the number of rows added to the ListBox, then you can implement that in your AddButton_Click method, too.
Ciao, luker
-
i want to store multiple inputs at run time in the text box and displays the output in listbox...
for this am using for loop to get multiple inputs and how can i store it???
i placed two text boxes , one for getting name and other for age... am going to give multiple persons name and age and am going to display it in list box... what shall i do for this????
-
How to get multiple inputs in textbox at run time and how it will display output in listbox
The way I see it you have 3 options: use the "Add" button sugestion, the gridview one, or make the user input a separating character between values, so you can take the inputs, split the strings by that character and work with the results. I think the best one, for the average end user, would be the Add button, having more than 1 "value" in the textbox is not very efficient or comfortable.