How to add namespaces in web.config file?

前端 未结 2 734
一个人的身影
一个人的身影 2020-12-01 23:18

I am using VS 2008 and C# but when I added namespace in web.config file, that namespace is not imported or included in code behind or aspx
I

2条回答
  •  悲&欢浪女
    2020-12-02 00:05

    The purpose of the namespace section is to get around having to do the import in the .aspx page. Code behind in C# still requires you to have the using statements at the top of your .cs file.

    There is no way to get around this.

提交回复
热议问题