Click here to Skip to main content
15,879,535 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to create custom Attribute? which i will give me Class name, Method Name and Property name on which this attribute fire.

I done this same in MVC using "ActionFilterAttribute" i want same into ASP.Net web Application.

Let me know if any idea you have.

Thanks & Regards
Amol.
Posted

1 solution

Attributes are feature of the .NET framework! It's not different between MVC or ASP.NET!
Start reading here: http://msdn.microsoft.com/en-us/library/sw480ze8.aspx[^]
 
Share this answer
 
Comments
Amol Lendave 12-Mar-14 8:11am    
How i can get class name of on which this attribute fire?
That's my question dear.
Kornfeld Eliyahu Peter 12-Mar-14 8:21am    
Attribute has no information about the class uses it. Class can be checked with reflection to see what attributes it utilize...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900