Amit Rai Sharma
Amit Rai Sharma

Reputation: 4225

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.

Upvotes: 5

Views: 4799

Answers (1)

Shimmy Weitzhandler
Shimmy Weitzhandler

Reputation: 104741

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

Upvotes: 6

Related Questions