List box
ASP.NET
3
Posts
3
Posters
0
Views
1
Watching
-
I am using list box but i am not able to get the value of the item selected. and it gives index as -1 everytime.
Mohinder Singh
maybe u bind your listbox in pageload or prerender event. in this state in first time bind your listbox and set that index to -1 automaticaly make sure your list box bind once or take it to: if(!IsPostBack) BindMyListBox();//this is your bind procedure
We Can Do Anything, If We Want It
-
I am using list box but i am not able to get the value of the item selected. and it gives index as -1 everytime.
Mohinder Singh