Reputation: 391
How to access this namespace using System.Web.UI.WebControls; in business access layer. How to add reference of this namspace? Plz help me..
Upvotes: 2
Views: 187
Reputation: 28528
From business layer you means a web service you calling from your UI project, you should not call UI logic from your Business layer, because separating it in two different project is the reason that your UI logic should be separate from your business logic. So if needed you can easily change complete UI.
If you want to be dependent on UI logic then there is no need to make separate project. You can create a folder in UI project for BLL and add your code there.
Upvotes: 1
Reputation: 4907
You must reference System.Web assembly:
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Upvotes: 1
Reputation:
I think this is not good add System.Web.UI.WebControls but if you want you can use:
See:
In Solution Explorer, double-click the My Project node for the project.
In the Project Designer, click the References tab.
Click the Add button to open the Add Reference dialog box.
In the Add Reference dialog box, select the tab indicating the type of component you want to reference.
Select the components you want to reference, and then click OK.
Upvotes: 1