Ok I found the problem. In the beginning I was loading the user control statically in the web form and then when I wanted to try to load it dynamically, I commented the line where I call it. This resulted in the comment tags to appear in the html code, I have no idea why actually. Anyway, I removed the comment completely and now the page loads without javascript errors and when i click the button in the user control, the required field validator of my textbox works. Now I have another issue related to the field validators, I'm not sure if I should created a new thread for it or not. In that same page with the user control, I have 1 textbox in the webform and 1 textbox in the user control, both have required field validators attached to them. I also have two buttons, one in the web form and one in the user control. My problem is that when i click the button inside the user control, the field validator of the textbox located in the web form activates. My question: is there a way to have some kind of scope for the button? I would like only the field validator of the user control to activate when i click the button inside the user control. Is there a way to accomplish such a thing? Thanks. Talal -- If this is a post that has been helpful to you, please vote for it. Thank you! "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." --Rich Cook