.Net: Reference System.Web.UI in a class library project

Setfocus

I am trying to implement the above Se Focus code in the class library that I have. The class I'm about to implement is a call to the HtmlHelper class, but I cannot reference the System.Web.UI class in the class library project.

How do you reference System.Web.UI in a class library project?

+3
source share
3 answers

You need to add a link to the System.Web assembly (see the .NET tab). However, I looked at the related code, and you could easily flip the function slightly and just return the string and lose the dependency on System.Web.UI.Page. Which is likely to make more sense in the long run.

+4
source

; , - ""... , dll ?

, , , ... , , "" ... . , , ( ).

+1

Add a reference to the System.Web assembly .

+1
source

Source: https://habr.com/ru/post/1709630/


All Articles