Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

reference a namespace in ascx

Tags:

asp.net

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.

like image 618
programmernovice Avatar asked Apr 02 '26 03:04

programmernovice


1 Answers

You should go with a @ Import directive:

<%@ Import Namespace="Your.Namespace" %>
like image 123
Rubens Farias Avatar answered Apr 03 '26 16:04

Rubens Farias



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!