I could find the error.
The code was like this.
protected void Page_Load(object sender, EventArgs e)
{
}
//===================================================================
The corrected code is as follows
//===================================================================
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
}
}