User Control

Posted on 2011-10-20
Medium Priority
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 75

Accepted Solution

käµfm³d   👽 earned 2000 total points
ID: 37001663
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

ID: 37001766
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article is for Object-Oriented Programming (OOP) beginners. An Interface contains declarations of events, indexers, methods and/or properties. Any class which implements the Interface should provide the concrete implementation for each Inter…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
SQL Database Recovery Software repairs the MDF & NDF Files, corrupted due to hardware related issues or software related errors. Provides preview of recovered database objects and allows saving in either MSSQL, CSV, HTML or XLS format. Ensures recov…
Suggested Courses

612 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