-
I don't know what to do.,You keep adding.,Of course it's going to explode.,If it's because it's because of the non-stop addition after submitting the page.。
Then put the add** of the listbox in !Behind.
For example: if(!
-
int icount = ;
for (int i = 0; i < icount;i++).
Fetch what is displayed.
Clear the contents of the listbox.
-
Put add() in ispostback and use clear() before add().
-
listitem item = as listitem;
However, after calling the interlocutor, he and the potato were lost.
-
Use the listbox method to read it!
Wouldn't it be nice to get ItemText(i) to read in a loop?
-
Loop through the first item of the listbox, an example is as follows:
-
vb can use a loop to obtain the list attribute of the listbox control.
list property, which returns or sets the item in the list section of the control. A list is an array of strings, and each item in the array is a list item.
The following ** reads the list property of the listbox control.
option explicit
dim i as long
private sub form_click()for i = 1 to 10
print 'The first 10 items of the listbox are output next
end sub
private sub form_load()dim entry as string 'Declaring variables.
for i = 1 to 30 'Count values range from 1 to 30.
entry = "entry " & i 'Create an input.
entry 'Add the input.
next i
end sub
-
private sub command1_click()===
end sub
If there are multiple text boxes, use :
private sub command1_click()dim i as integer
for i = 0 to - 1
if left(, 4) = "text" then= , len( -4)) 1)
end if
next i
end sub
Prerequisite: Your text box name must be the default, text1, text2, text3,。。
Of course, with an array of controls, you can greatly simplify it.
-
Hello, I suggest you set text as an array of controls.
Hello, sub command click() can be implemented with a for loop in the command click event
for i=0 to ubound(listbox)text(i).text=
next iend
-
When the listbox is added, you can add a value, a text, the text is displayed, and the value is not visible, for example, if you save a person, you can save the person's ID and the person's name, so that you can get the id to uniquely determine a person.
listitem("Name","id"));
What is displayed is the "name", which can be used.
Get a "name".
Acquired"id"
-
The content must be assigned by the server ** to get it, so your solution will not work.
You can only get the content of the submitted items, and you can't get the unchecked items.
However, you can use js to put those items into a hidden variable and get them through request to split them.
-
1.Read the database data first, use the loop, and use it in the loop; That's it
-
You have to bind the listbox to the data source, then store the data in the dataset, and finally use the datareader to loop the data into it.
Software: VideoStudio or Windows comes with a voice recorder. >>>More
The sub-envelope system refers to the grading of grades:
Zhou Tianzi was the king, and below the king were the princes, then the princes, then the doctors, then the scholars, the commoners, and finally the slaves. >>>More
datatable operation.
The query is placed in dt1 >>>More
To be honest, I don't know what you're going to do, the purpose of the question is not clear. The NTH format is also ZIP standard. nth stands for Nokia Theme. >>>More
Passing the blame on to others is a kind of evasion of responsibility and a lack of responsibility. >>>More