Software Programs and Projects

This Software Programs and Projects include programing tips and technology using different languages like VC++,ASP,JSP C#.Net,PHP,VB.Net,JavaScript,ASP.NET .Software Programs and Projects blog mainly support to software programmers and provide help through the mail.

//Checking Listbox item selected or not in C#.Net
//Selected ListBox Item Value and Text

if (this.listBoxExistingDestination.SelectedIndex != -1)
{
//Selected ListBox Item Value and Text
int iDestinationId = (int)this.listBoxExistingDestination.SelectedValue;
string strDestinationName=this.listBoxExistingDestination.Text;
}
else
{
//Unselect
}

the same code using for Dropdownlist control in C#.NET windows based application

tag:-Check if Item selected in Listbox : C#.Net

Related Posts

0 comments:

Post a Comment

Post a Comment