I am having a Calculate() function in user control which is inherited in a page.
I need to call this method in the button click event in the page.
Can any one give me an idea.
Thanks.
Make the method public inside the UserControl
public int Calculate() { }
And then in page call it as following
int total = MyControl.Calculate();
© COPYRIGHT 2025 ASPSnippets.com ALL RIGHTS RESERVED.