The type or namespace name 'UI' cannot be found for using System.Web.UI

Posted by user284523 on Stack Overflow See other posts from Stack Overflow or by user284523
Published on 2010-03-29T09:44:37Z Indexed on 2010/03/29 10:03 UTC
Read the original article Hit count: 781

Filed under:

I am following the tut here http://msdn.microsoft.com/en-us/library/h59db326.aspx

#

Create an App_Code directory directly under the root directory of your Web site (also called Web application root). #

Copy the source file for the control (WelcomeLabel.cs or WelcomeLabel.vb) to the App_Code directory.

But I got the error on

using System.Web.UI;
using System.Web.UI.WebControl;

I have tried to add System.Web as Reference but that still doesn't resolve the stuff. I can't see System.Web.UI and System.Web.UI.WebControl in the reference lists is this normal ?

Thanks.

© Stack Overflow or respective owner

Related posts about ASP.NET