title: How to use MVC custom attribute on aspx.cs page?
body: <p>My application is in Asp.net MVC 4. I'm using .aspx page for opening of report. I've implemented custom user rights attribute on all action of application. I want to use it on my .aspx.cs page class or every function that is in .aspx.cs page. How to use it? can i use MVC custom attribute in aspx page
  In mvc I'm using like this</p>
  
  <pre><code>[AuthorizeUserControls("urlInventoryReport")]   
  public ActionResult Inventory(string ReportTitle)    
  {
  
  }
  </code></pre>
  
  <p>How to use in .aspx.cs page</p>
  
  <pre><code>public partial class ReportViewer : System.Web.UI.Page
  
  {
  
  [AuthorizeUserControls("urlInventoryReport")] //it's not working
  
  private void ViewInventoryReport()
  
  {
  
  }
  
  }
  </code></pre>