Override OnInit to perform target-specific processing in the Initialize stage of the control lifecycle.
using System;
using System.Web.UI;
using System.Web.UI.Adapters;
public class CustomControlAdapter : ControlAdapter
{
protected override void OnInit (EventArgs e)
{
Control.Visible = false;
base.OnInit(e);
}
}