?
Solved

namespace name 'Control' could not be found (are you missing a using directive or an assembly reference?)

Posted on 2004-10-27
2
Medium Priority
?
2,232 Views
Last Modified: 2012-06-21
i'm attempting to loop through a list of controls

foreach(Control c in Controls)

and are recieving the following error on type control
C:\aspnet\ELending\ElendingOverDraft\Controls\LoadLimitFooter.ascx.cs(196): The type or namespace name 'Control' could not be found (are you missing a using directive or an assembly reference?)

                        
0
Comment
Question by:rourkas1
2 Comments
 
LVL 15

Accepted Solution

by:
Timbo87 earned 500 total points
ID: 12430468
Add
using System.Web.UI;
0
 
LVL 6

Expert Comment

by:Chester_M_Ragel
ID: 12431096
or foreach(System.Web.UI.Control c in Controls)
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

Question has a verified solution.

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

Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
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…
This video tutorial shows you the steps to go through to set up what I believe to be the best email app on the android platform to read Exchange mail.  Get the app on your phone: The first step is to make sure you have the Samsung Email app on your …

615 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