Hi,
I have a control and a list of variables, and I want the control to assign a value to the variable directly on the page, and not from the reverse code, something like this
My global variables
public string Banana = "banana_pie";
public string Apple = "apple_pie";
in my user control instead:
<uc:LoadPie id="pieBanana" type="banana_pie" />
For this
<uc:LoadPie id="pieBanana" type="<%=Banana %>" />
so there is a way or just assign a property in the reverse code of the page.
thank
source
share