Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding Custom attributes to the page directive in asp.net

Tags:

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.

like image 965
Amit Rai Sharma Avatar asked Jul 19 '10 09:07

Amit Rai Sharma


1 Answers

Take a look at: http://weblogs.asp.net/scottgu/archive/2005/08/02/421405.aspx It might be useful

like image 150
Shimmy Weitzhandler Avatar answered Oct 21 '22 23:10

Shimmy Weitzhandler