You can use the below code:-
User Control 1 : WebUserControl.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl.ascx.cs" Inherits="UserControls_WebUserControl" %>
<asp:DropDownList ID="ddl1" runat="server">
</asp:DropDownList>
User Control 2 : WebUserControl2.ascx
<%@ Control Language="C#" AutoEventWireup="true" CodeFile="WebUserControl2.ascx.cs"
Inherits="UserControls_WebUserControl2" %>
<%@ Register TagPrefix="uc" TagName="Spinner" Src="~/UserControls/WebUserControl.ascx" %>
<uc:Spinner id="Spinner1" runat="server" />
Code to find the control:- Write this code in WebUserControl2.ascx.cs file
UserControls_WebUserControl obj = new UserControls_WebUserControl();
DropDownList list = (DropDownList)obj.FindControl("ddl1");
Hope this help you.
Sushant, if this helps please login to Mark As Answer. | Alert Moderator