Calling UserControl Method from WebForm
-
I have a user control that takes user input and when you click the 'calculate' button; it does some calculation with JavaScript and save the value to a hidden input box. I want to call the 'calculate' button's logic from my WebForm so that it can do its calculation using JavaScript and save the value to the hidden input textbox; which i can reach using myUserControl.FindControl method. How can I do that? Alternatively I would like to know how I can access a UserControl method (that returns a string value) from WebForm? Thanks for your help.
-
I have a user control that takes user input and when you click the 'calculate' button; it does some calculation with JavaScript and save the value to a hidden input box. I want to call the 'calculate' button's logic from my WebForm so that it can do its calculation using JavaScript and save the value to the hidden input textbox; which i can reach using myUserControl.FindControl method. How can I do that? Alternatively I would like to know how I can access a UserControl method (that returns a string value) from WebForm? Thanks for your help.