Hi,
I have the following code which at the moment sits in a number of pages:
private void ConfigureEmailSignup()
{
ContentPlaceHolder cphBaseContent1 =
(ContentPlaceHolder)Master.Master.FindControl("Base_Content1");
if (cphBaseContent1 != null)
{
Controls_Email_Signup emailSignUp =
(Controls_Email_Signup)cphBaseContent1.FindControl("Email_Signup");
if (emailSignUp != null)
{
emailSignUp.DisplayType = "store-list";
}
else
{
// event log
}
}
else
{
// event log
}
}
It sits in the page because I reference the usercontrol type 'emailSignUp' and pass data to an exposed variable 'DisplayType'. The control is located in th ...
Go to the complete details ...