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?

leppie
  • 115,091
  • 17
  • 196
  • 297

3 Answers3

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

MikeSmithDev
  • 15,731
  • 4
  • 58
  • 89
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".

Yagzii
  • 286
  • 3
  • 14
0

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

Colin Gardner
  • 531
  • 5
  • 5