Hi,
In my task combobox is there.In this combo i have some itemcodes.Now i want to item names in textbox based on that item code.
I wrote this code but it is not working.Item code is integer value not a string.I tried all ways..
private void cmbitemcode_SelectedIndexChanged(object sender, EventArgs e)
{
if (cmbitemcode.SelectedValue=="101")
{
txtitemname.Text = "Samosa";
}
if (cmbitemcode.SelectedValue == "102")
{
txtitemname.Text = "Cake";
}
if (cmbitemcode.SelectedValue == "103")
{
txtitemname.Text = "Biscuits";
}
else
{
}
}
Thanks & Regards
Hari