I have added namespace in web.config pages section. Can use it in aspx not in ascx. What should I do ?
Update: 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" %>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With