Hi,
I'm using the Dialog to load a User Control. I read an earlier post to find out how to load the user control without setting the ShowButton property. Which I needed, and that's working correctly!! But now, in the Button Click event I need to set some values, and then call the method in the User Control to load the data from the database based on the button that the user clicked. (I'm using the Ajax Reorder List to display my data, and inside of that is where the user will click the button) But I'm not sure how to do that since it's inside of the Dialog. When I try to use name of the user control and call the method like:
Code: C#
UserControl.MethodName(variable1, variable2);
I get an error saying that "UserControl" does not exist in the current context. I saw a post about how to find the control, but it's not like a label where I need to set a defined property. Any help would be great!
Thanks!