Olá Flavio, tudo bem ?
Estranho este seu código acima estar dando erro, eu testei ele e não apresentou erro algum.
Talvez você possar recuperar seus controles direto do
Panel, tente fazer isso e veja se o erro persiste:
protected void SubmitButton_Click(object sender, EventArgs e)
{
//Create an instance of Button for the existing control
Button SubmitButton = (Button)sender;
//Update the text on the Button
SubmitButton.Text = "Submit again!";
//Create the Label and TextBox controls
Label FeedBackLabel = (Label)Panel1.FindControl("FeedBackLabel");
TextBox InputTextBox = (TextBox)Panel1.FindControl("InputTextBox");
//Update the controls
FeedBackLabel.Text = String.Format("Hi, {0}", InputTextBox.Text);
}
Vitor Mendes | http://www.vitormendes.com.br/
"Ajuda teu semelhante a levantar a sua carga, porém, não a carregá-la." (Pitágoras)
