Reputation:
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
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
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
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
Upvotes: 1