How to show a given text value in combo box if it is in collection of combo box
ASP.NET
2
Posts
2
Posters
0
Views
1
Watching
-
Hello To Every One, How to show a given text value in combo box if it is in collection of combo box.. Thank You..
-
Hello To Every One, How to show a given text value in combo box if it is in collection of combo box.. Thank You..
Hi, If this value is in text section of that combo then use following to find that item and set returned items Selected property to true. List item = .Items.FindByText("yourtext"); if (item != null) item.Selected = true; If that is in its value section then use following List item = .Items.FindByValue("yourvalue"); if (item != null) item.Selected = true; Hope this solves your issue.
Zafar Iqbal