ascx :
public void DllList(int Index)
{
DropDownList1.Items[Index].Selected = true;
}
aspx:
protected void Page_Load(object sender, EventArgs e)
{
Header1.DllList(2);
}
html :
<uc1:Header ID="Header1" runat="server" />
ascx :
public void DllList(int Index)
{
DropDownList1.Items[Index].Selected = true;
}
aspx:
protected void Page_Load(object sender, EventArgs e)
{
Header1.DllList(2);
}
html :
<uc1:Header ID="Header1" runat="server" />