Hope someone help me with this.
Is this possible in asp.net?
protected void Page_Load(object sender, EventArgs e)
{
Control parsed = this.ParseControl(@"<% if (true){ %> <div> Show True
Content </div> <%} %>");
myPlaceholder.Controls.Add(parsed);
}
<asp:View id ="myPlaceholder" runat="server" />
EDIT: and I also try this still doesn't work and others
<asp:PlaceHolder id ="myPlaceholder" runat="server" />
If this is possible how can I achieve this?.