문제

<%@ Import namespace="Project.Web.Localization" %>
<%:Shared.LogOnUserControl.Account%>

I try this to make shorter my code :), but it didn't work :(

ASP didn't find folder Shared.

but this is working <%:Project.Web.Localization.Shared.LogOnUserControl.Account%>

도움이 되었습니까?

해결책 2

As i understand, i can import only namespace to ended file in the path: <%@ Import namespace="Project.Web.Localization.Shared" %> and now i can use like this <%:LogOnUserControl.Account%> So now i am try to refactor my code to much general

다른 팁

You need to look into this and this .

This is complete namespace Project.Web.Localization.Shared.LogOnUserControl.Account

This can be a namespcae Project.Web.Localization but this ain't Shared.LogOnUserControl.Account . You are trying to break the property of Import called namespace which is illegal syntax . Or you can use web.config like described here

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top