I have 2 instances of a user control (ascx) in a view page.
I set ViewData["xyz"] = "True" inside the user control.
The first instance would set ViewData["xyz"] to "True". However, this same value is not retained in the second instance of the user control.
I was expecting ViewData["xyz"] to be still "True", but it is null.
Please help.
What is the best way to have a shared variables across the user controls?