Hi,
I think you must use
delegate
Try this example:
In your code behind page:
protected void Page_Load(object sender, EventArgs e)
{
ucOverride.SendValue += delegate(bool checkedOverride)
{
if (checkedOverride == true)
{
}
};
}
In you custom control page code behind:
public delegate void SendData(bool checkedOverride);
public event SendData SendValue;
protected void btnOk_Click(object sender, EventArgs e)
{
bool checkeds = false;
if (chkOverride.Checked)
{
checkeds = true;
}
else
{
checkeds = false;
}
if (SendValue != null)
{
SendValue(checkeds);
}
}
Hope this could help...
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Regards,
Algem