开发者

Adding Custom attributes to the page directive in asp.net

开发者 https://www.devze.com 2023-01-08 09:16 出处:网络
Is there a way to add custom attributes to @Page directive and also get design time support like intellisense for the same?

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 Direct开发者_高级运维ive 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号