how to keep track of index in listbox items.
Answers were Sorted based on User's Feedback
Answer / prasad
please send me the answer.
this is used in sendig items from one list box to another
listbox with a single click.
if the items r more.
| Is This Answer Correct ? | 3 Yes | 1 No |
Answer / ravikv
The following code retrieves the all the items of a list
box in to another list box in a single button click :
public void button1_click()
{
for(int i = 0; i < listbox1.items.count;i++)
{
listbox2.items.Add(listbox1.items[i].Text.Tostring());
}
}
| Is This Answer Correct ? | 3 Yes | 2 No |
suppose we using gridview contrl,with sqldatasource.in that for birth date how can we take validation contrl for dd/mm/yy formator how we assign regular expression for same
Which method is used by command class to execute SQL statements that return single value?
What is the difference in record set and dataset?
How do you sort the data in datagrid?
Execute nonquery returns no. of afected rows.So if my stored procedure hav lot of select stmnt, delete stmnt, insert stmnt..then what does execute nonquery returns in this case?
What is the difference between oledb sql server and oledbdotnet provider?
What is the return type of executescalar?
What are the essential features of ado.net?
What is the difference between ADO and ADO.Net?
Which database is the ado.net sql connection object designed for?
What do you know about ado.net's methods?
Which is the best institute in navi mumbai to learn DotNet
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)