简体   繁体   中英

Adding Custom attributes to the page directive in asp.net

Is there a way to add custom attributes to @Page directive and also get design time support like intellisense for the same?

I have used Adding Custom Property to Page Directive in ASP.Net 2.0 as a pointer.

I would like to have a attribute which will give dev an option to select value from list. Something similar to EnableSessionState attribute. I do understand I need to define an enum for the values. But I cannot understand how to make it available during the design time.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM