How do i find the values in a control.
I have tried this in C#
?LTCMenu1.FindControl[Tab2.FindControl[ddlStatusVerify.DataValueField.ToString()]]
Can any one plz help me out.
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
>
> How do i find the values in a control.
>
> I have tried this in C#
> ?LTCMenu1.FindControl[Tab2.FindControl[ddlStatusVerify.DataValueField.ToString()]]