Ryan Turney

Ryan Turney

  • NA
  • 245
  • 209.1k

Label not updating

Oct 21 2007 5:24 PM

Hello everyone this problem should be fairly simple but I don't understand why it is not working. I have a DetailsView on my page so the user can insert data into my database easily. Every time the insert button on the DetailsView is pushed I need to update the label, but this seems on only fire once and then stop even after clicking the insert button many times.

Every time the insert button is pushed this code SHOULD be fired. But its only fired on the first click and it wont fire again.

public void quizDetailsView_ItemInserted(object sender, DetailsViewInsertedEventArgs e)

{

currentQuestion++;

questionNumLabel.Text = "Question " + currentQuestion + " of " + quizQuestions;

}

Thank you,

Ryan