1

I had a website project, which I converted to a web application project. I have a set of namespaces defined in my web.config pages/namespaces section. However I am not able to see them in my codebehind (.vb) files. This used to work fine in the web site project. Can somebody put light on this please?

Thanks,

0

2 Answers 2

1

You can add them to the .vbproj file for that web application project. They appear to have no effect from the web.config file. There are a number of "Import" nodes in the .vbproj file. You will have to format them a little differenty see below:

<add namespace="System.Web.UI.HtmlControls"/>

to

<Import Include="System.Web.UI.HtmlControls" />
Sign up to request clarification or add additional context in comments.

Comments

0

You have to assign namespace in each file manually, I guess.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.