User Control

Posted on 2011-10-20
Last Modified: 2012-08-13
I am getting an error in the code behind of my web page:   “The name DDNewValues does not exist in the current content” .

The cause of error is I have a web page with a user control.  The user control has a hidden drop list that  becomes visible when a certain text box is made visible

The user control  ID is FirstTest1
The drop list ID is DDNewValues

How do I fix this error in the code behind of this page so that the drop list is recognized
Question by:jordanhelen
    LVL 74

    Accepted Solution

    The user control has a hidden drop list that  becomes visible when a certain text box is made visible
    Becomes visible how? On a post back or via Javascript?

    Also, within which function of the UC do you receive the error?

    Author Comment

    There are two drop lists and one text box on the page.  The first drop list is visible, the text box is visible  and the second drop list is hiddenw hen the page opens.

    When the user selects a certain value like "good" from the first drip list the text box becomes unvisible and the second drop list becomes visible.  The code to do this works fine.  I just can't get it recognized in the code behind on the main web page.

    Thank you.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    In one of my recent projects, I was working with IP cameras, I need to take some pictures from the camera and do some processing on it. The first step, was to retrieve the image from camera into Image object. So that it can be displayed or …
    Bit flags and bit flag manipulation is perhaps one of the most underrated strategies in programming, likely because most programmers developing in high-level languages rely too much on the high-level features, and forget about the low-level ones. Th…
    Migrating to Microsoft Office 365 is becoming increasingly popular for organizations both large and small. If you have made the leap to Microsoft’s cloud platform, you know that you will need to create a corporate email signature for your Office 365…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    759 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

    9 Experts available now in Live!

    Get 1:1 Help Now