开发者

reference a namespace in ascx

I have added namespace in web.config pages section. Can use it in aspx not in ascx. What should I do ?

Upda开发者_如何学Cte: have added System.Web.Security with import directive but still can't see User class in Intellisense why ?

Thanks.


You should go with a @ Import directive:

<%@ Import Namespace="Your.Namespace" %>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜