0

I tried every way to use System.Web.UI.HtmlControls; but I didn't find any reference for that.

How can I use that namespace?

1
  • What type of project you create? It is .Net 4.0 Client Profile application, isn't it? Commented Nov 10, 2012 at 17:37

3 Answers 3

1

Go to your References for your project and ensure System.Web is in there. If not, Right click, Add Reference, .NET, and add System.Web

enter image description here

Sign up to request clarification or add additional context in comments.

6 Comments

there's no reference which named system.web
Right click the References folder and "Add Reference"
there's nothing with this name in there
Go to the .NET tab, sort by Component Name.
yeah. that's right. but it only shows me system.web.applicationservices and system.web.services
|
0

you need to right-click the project -> properties -> then change the "Target framework" which will probably be ".NET Framework 4 Client Profile" to just ".NET Framework 4".

Comments

0

Browse to C:\Windows\Microsoft.NET\Framework\v2.0.50727\System.Web.dll and pick it up from there as a reference

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.