TheMajorRager wrote:
My problem is that label, errorlabel should contain an error message on it, but if I click a certain button, and then I click back, the errorLabel does not get set back to "" because it does not go to the Page_Load when you click back
This is ASP.NET ? It won't work. Your control is recreated on every post back, no matter what. You need to store the text in viewstate, and restore it, assuming the control is incapable of doing this for you.
TheMajorRager wrote:
What I was trying to do was when I go to the next page, since it would be accessable to the that page since it's static, to change it there to the empty string.
When you move to another page, all contact with the class instance that was running the last page is lost. You have to remember in ASP.NET, you don't get one class instance for the page, you get one every time the page is rendered, which is brand new, unless it's a postback, and then it is still brand new, but can repopulate some fields from viewstate. Christian Graus - Microsoft MVP - C++