Search code examples
c#visual-c#-express-2010system.web.ui.webcontrols

System.Web.UI Reference In Visual C# 2010 Express


I am working on a project in Visual C# 2010 Express and need to use the following references: System.Web.UI; System.Web.UI.HtmlControls; System.Web.UI.WebControls; System.Web.UI.WebControls.WebParts;

When I go to Projects > Add eference > .Net and look at the list of available references, System.Web.UI isn't in there (although System.Web.Services and System.Web.ApplicationServices are options).

After some Googling and searching for related problems here on StackOverflow, I found that people were able to get System.Web.UI added by changing their client profile. However, that doesn't seem to be an option available to me in my Express edition; for example, if I go to Projects, there is no properties option, and I can't find properties under any other menu.

Does this mean that Visual C# Express doesn't allow for changing project profiles, or am I just searching in the wrong place?

Any help will be greatly appreciated.


Solution

  • you need to install Visual Web Developer 2010 Express if you need to create web project/ASP.NET Web Application. Visual C# Express supports for Windows Forms Applications, WPF Applications, Console Applications, Class Libraries etc.. but not what you want.