Control.FindControl returns a Control Object.
you have to cast that control as the type you expect. In this case a
DropdownList. Then you can access the DataValueField Member.
Control c = new Control();
DropDownList ddl = (DropDownList)c.FindControl("id");
if (ddl != null)
{
string value = ddl.DataValueField;
}
On Apr 29, 9:35 am, iHavAQuestion
<iHavAQuest...@discussions.microsoft.com> wrote:
> I am using a menu control in which i have a tab controld in which i have a
> dropdownlilst
[quoted text clipped - 5 lines]
>
> Can any one plz help me out.