User Control Id not working
I created a user control (ascx file) consisting of a panel and a few text boxes. After placing the control on a web form (aspx file), I cannot reference it in the codebehind file. I receive the error "Name wucPersonalInfo1 is not declared." If I run the application anyway, I receive the following runtime error: "Could not load type 'wucPersonalInfo'." The ascx file is in the same project as the aspx file. Nothing has been compiled yet.
Any ideas?
Thanks, Brandon
|