Call Parent page(.aspx) Method from User Control(.ascx)
Call Parent page(.aspx) Method from User Control(.ascx)
Method on ContactHome.Cs page
public void Sum()
{
Response.Write("Parent
Page Method");
}
Calling from User control:-
Here ContactHome is
page name where method is write.
U can simply call parent page Methods by using this
syntax.
((ContactHome)this.Page).Sum();
Comments
Post a Comment