We currently have 4 different ascx pages for different parts of our site.
What we want to do is have on one ascx page is specials that are controlled via app configs
C#/VB.NET Code:
c# code
if (AppLogic.AppConfigBool("ShowSpecialOnShoppingCart"))
{
string SpecialURL = AppLogic.GetString("ShoppingCartSpecial.aspx.URL", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
string SpecialTEXT = AppLogic.GetString("ShoppingCartSpecial.aspx.Display", ThisCustomer.SkinID, ThisCustomer.LocaleSetting);
Special.Text = "<div style=\"text-align:center;padding:0;margin:0;\"><a href=\"" + SpecialURL + "\" title=\"Checkout Special\">" + SpecialTEXT + "</a></div>";
Special.Visible = true;
}
else
{
Special.Visible = false;
}
aspx code
<asp:Label ID="Special" runat="server" Visible="false" />
Problem is I am not too sure how to get this to work, can anyone help?
Thanks in advance.