Click here to Skip to main content
15,890,282 members

Comments by NF Khan (Top 3 by date)

NF Khan 5-Sep-14 13:37pm View    
Reason for my vote of 5 \n Excellent, Thanx a lot.
NF Khan 24-Aug-14 7:03am View    
Similarly i have a user control in which i have DropDown, I am trying to accessing the DropDown items in Master page code behind but i am not able to get it, Below is my code use

Site.Master
<%@ Register TagPrefix="uc" TagName="MyDDL" Src="~/MyUC.ascx" %>
<uc:MyDDL runat="server" ID="SelectDDL" />

Site.Master.cs
DropDownList thisDropDown = this.Master.FindControl("SelectDDL") as DropDownList;

Please help how can i achieve this. I am getting NullException Error.

Thanks in advance
NF Khan 23-Aug-14 13:14pm View    
Similarly i have a user control in which i have DropDown, I am trying to accessing the DropDown items in Master page code behind but i am not able to get it, Below is my code use

Site.Master
<%@ Register TagPrefix="uc" TagName="MyDDL" Src="~/MyUC.ascx" %>
<uc:MyDDL runat="server" ID="SelectDDL" />

Site.Master.cs
DropDownList thisDropDown = this.Master.FindControl("SelectDDL") as DropDownList;

Please help how can i achieve this. I am getting NullException Error.

Thanks in advance