Solved

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

Posted on 2004-10-27
2,171 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
Question by:rourkas1
    2 Comments
     
    LVL 15

    Accepted Solution

    by:
    Add
    using System.Web.UI;
    0
     
    LVL 6

    Expert Comment

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

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Prepare to Pass the CompTIA A+ 900 Series Exam

    CompTIA aims to adapt its A+ Certification to reflect the most current knowledge and skills needed by today's IT professionals--and this year's 2016 exam is harder than ever. This certification is one of the most highly-respected and sought after in IT.

    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 …
    Introduction                                                 Was the var keyword really only brought out to shorten your syntax? Or have the VB language guys got their way in C#? What type of variable is it? All will be revealed.   Also called…
    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…
    how to add IIS SMTP to handle application/Scanner relays into office 365.

    934 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

    18 Experts available now in Live!

    Get 1:1 Help Now