How to select a specific Item in a ListBox in code

Platform: ASP.NET|Category: ListBox

VB.NET

ListBox1.Items.FindByValue(<Value>).Selected = true
’ListBox1.Items.FindByText(<Text>).Selected = true

C#

ListBox1.Items.FindByValue(<Value>).Selected = true;
//ListBox1.Items.FindByText(<Text>).Selected = true;