Listbox Control
-
I want to selectedIndex of listBox, but it returns -1. Code is: if (lbCat.SelectedIndex >=0) { } Please Solve my problem. Thanks in Advance Ajai
Looks like you will be binding the listbox in page_load without checking IsPostBack value. Hard to tell much as you have not given any details about what you are doing.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions
-
I want to selectedIndex of listBox, but it returns -1. Code is: if (lbCat.SelectedIndex >=0) { } Please Solve my problem. Thanks in Advance Ajai
Where are you checking these code ? Do the listbox have the items in it ? Please be more specific
Thanks and Regards Sandeep If If you look at what you do not have in life, you don't have anything, If you look at what you have in life, you have everything... "