DataTable Dtab_1 = new DataTable();
Dtab_1 = DbCon.GetData("select ReasonCodeC +' / '+ReasonNameC as ReasonD from reason");
ddlresoncode.DataSource = Dtab_1;
ddlresoncode.DataTextField = "ReasonD";
DataTable Dtab_2 = new DataTable();
Dtab_2 = DbCon.GetData("select r.ReasonCodeC+' / '+r.ReasonNameC as reasonD from reason as r inner join holiday as h on r.ReasonCodeC=h.ReasonCodeC where h.HolidayNameC='" + strCmd + "'");
ddlresoncode.Items.FindByText(Dtab_2.Rows["reasonD"].ToString()).Selected = true; // Here i Got Error!
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)