开发者

reference a namespace in ascx

开发者 https://www.devze.com 2022-12-20 10:12 出处:网络
I have added namespace in web.config pages section. Can use it in aspx not in ascx. What should I do ?

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

精彩评论

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