Click here to Skip to main content
15,896,269 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i currently doing a web based system that has a time watch to keep track the time duration of employees working hours. I've searched for codes and found this......

protected void Timer1_IntervalReached(object sender, CodeControls.TimerEventArgs e)
{
....
}
protected void Timer1_IntervalReached(object sender, CodeControls.TimerEventArgs e)
{
....
}

this is just part of my .aspx.cs...
I found an error on protected void Timer1_IntervalReached(object sender, CodeControls.TimerEventArgs e) and protected void Timer1_IntervalReached(object sender, CodeControls.TimerEventArgs e).. It says that: "The type or namespace name 'CodeControls' could not be found(are you missing a using directive or an assembly reference?)

what does this mean??? :doh:

I have this in my page:
C#
using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;



what reference does this error means???? :confused:

please please please hepl me.. i'm just a 1st year college and not good with this :((
Posted

1 solution

Heaven23 wrote:
It says that: "The type or namespace name 'CodeControls' could not be found(are you missing a using directive or an assembly reference?)


This means the Timer control that you are referring to is a Custom Control and custom events are defined for it. CodeControls must be a namespace.

Based on this:
Heaven23 wrote:
I've searched for codes and found this......

Check if you have this namespace in the control. Change the namespace according to your project namespace for access. Or else add that custom control as a reference to your project.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900