I have some ASP.NET user control named myUserControl.
I also have some aspx page named myAspxPage.
myAspxPage contains myUserControl and also myAspxPage contains this javascript function:
function SetProgressBar()
{
//some logic
}
at some point I need to call SetProgressBar javascipt function when this button:
<asp:LinkButton ID="prevItem" runat="server" ToolTip="previous" Style="color: #000000;" OnClientClick="to call SetProgressBar function"> << </asp:LinkButton>
is clicked in myUserControl.
I tryed this:
OnClientClick="parent.SetProgressBar()"
and this:
OnClientClick="SetProgressBar()"
But examples above not work.
So my question is any idea how can I call javascript function in the parent page from user control?