if the function Button1_Click(object sender, EventArgs e) is : protected void Button1_Click(object sender, EventArgs e) { TextBox1.Text="success"; } you said"you just create an instance of class _Default but the controls in it don't get instantiated" why it is right, when i click the button