Code Behind not seeing controls

Posted on 2011-10-07
Last Modified: 2012-05-12
I have a web project that all of a sudden, my code behind page does not see the controls on the aspx page.  @page directive looks good, is there somewhere else to check?
Question by:mgmhicks
    LVL 14

    Expert Comment

    Is this occurring on all your pages?
    LVL 1

    Accepted Solution

    I would try:

    1. Clean the solution
    2. Delete temporary .net files
    3. reboot
    4. This one may sound weird but it has worked for me when nothing else does.. copy and and paste all the code from your mark up and code behind into a two text files (as backup), delete the file in question, and then create a new file and just copy your code back in.

    Author Comment

    Not occuring on all of my pages.  Just the one I built yesterday and earlier it was fine.
    LVL 14

    Assisted Solution

    Ive seen where controls get messed up before... What version of Visual Studio?  Try deleting one of the controls and re-adding it.

    Featured Post

    Highfive + Dolby Voice = No More Audio Complaints!

    Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

    Join & Write a Comment

    Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
    Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
    It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    729 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now