tanyasiapa
New Member
I'm new to asp.net trying to use datalist control.on edititemtemplate section i have put up a dropdownlist control. It has values in it. What I want is to select a value in edit mode but when I go to event (as set in oneditcommand ) my codes cannot find dropdownlist though its in edititemtemplate. Please check my codes below\[code\]DropDownList ddl = e.Item.FindControl("ddlType") as DropDownList; ddl.Items.FindByValue((e.Item.FindControl("lblType") as Label).Text).Selected = true;\[/code\]What I'm doing wrong?thanks-Navi