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

Popular posts from this blog

Create and save QR code in asp.net with C#

Change text of RadGrid Header Dynamically

Telerik Radwindow Open on Button Click