G
Guy Lafleur
I have a user control that builds a treeview dynamically in the Page_Load event. Also, I have the AutoEventWireup property set to true (i.e., <%@ Control AutoEventWireup="true" %>). Then, when I 'run' the application, I get two treeviews instead of one. I'm thinking this is because of the AutoEventWireup property being set to true.
1. Am I correct? If so, if the AutoEventWireup property is true, why does it create two treeview in my user control?
2. If I set the AutoEventWireup property to false, what issues/problems will this cause (if any)? And, what else do I need to do to make sure my user control works correctly?
Thanks in advance for your help.
1. Am I correct? If so, if the AutoEventWireup property is true, why does it create two treeview in my user control?
2. If I set the AutoEventWireup property to false, what issues/problems will this cause (if any)? And, what else do I need to do to make sure my user control works correctly?
Thanks in advance for your help.