user1814632
user1814632

Reputation:

can't find using System.Web.UI.HtmlControls namespace

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?

Upvotes: 0

Views: 8665

Answers (3)

Colin Gardner
Colin Gardner

Reputation: 531

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

Upvotes: 0

Yagzii
Yagzii

Reputation: 286

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".

Upvotes: 0

MikeSmithDev
MikeSmithDev

Reputation: 15797

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

Upvotes: 1

Related Questions