how should RegisterForEventValidation be used correctly

I recently started using ScriptManager. I have an ASP.NET DropDownList control that I’m populating via JavaScript. However, I’m using Event Validation. So I run into the error below if I don’t use the “RegisterForEventValidation” call here for my dropdown. How do I know what value(s) to set in the second argument (where I have “value”)? I am populating my dropdown via JavaScript, so I won’t know what values are there from my code behind. I’m guessing that Render is called during an AJAX partial rendering postback, correct? Or is it not, so this is called regardless of whether I’m doing a full page postback or not. I guess I’m wanting to hear not only the answer to my question, but if you can share your experiences with me about the error below. I love input, just like Johnny #5.

Button click event doesn’t work properly

This following code handle button click event. When the user click first time it sets the lable as “First Time”, and when the user click second time it sets the lable as “Second Time”. But it doesn’t work properly. When I first click it, it sets the lable as “First time”, which is correct, but when I click second time, nothing happend.