Search

You searched for the word(s): userid:666744

Matching Posts

  • Re: Overriding Authorize attribute

    But all actions require authorization, just there are two different roles
    Posted to ASP.NET MVC (Forum) by radco on 12/13/2009
  • Current action and controller

    Hi, is there a way to find out, which action and which controller is actually executing? Can I read it if I have a input parameter of HttpContext? Thanks
    Posted to ASP.NET MVC (Forum) by radco on 12/13/2009
  • Context of attribute

    Hi if I override AuthorizeCore of AuthorizeAttribute, how can I find out if this attribute is attached to controller (class) or action (method)? If it is possible I want to ask also how to find out name of that class or method? Thanks
    Posted to ASP.NET MVC (Forum) by radco on 12/13/2009
  • Re: Overriding Authorize attribute

    Thanks for attempts, but I want something bit different. I want to restrict access on controller level, but for some actions I want to specify another restrictions (it means, that I just don`t want that restriction on controller level to apply). I think I can achieve it in this way. I create a custom class that derive from AuthorizeAttribute and I override AuthorizeCore method. There I check if this attribute is attached to controller. If true, then I get action method name from RouteData and I use
    Posted to ASP.NET MVC (Forum) by radco on 12/13/2009
  • Overloading methods in controller

    Hi, I want "Index" method on controller, but I want to enable paging. Here is code from my controller public virtual ActionResult Index() { return Index(1, 20); } public virtual ActionResult Index(int from, int to) { var projekty = (from p in DataContext.projekts orderby p.nazov select p).Skip(from - 1).Take(to - from); return View(projekty); } How should I write routes to global.asax to process theese methods. Whatever I try, I get an exception "ambigious". Thanks x
    Posted to ASP.NET MVC (Forum) by radco on 12/9/2009
  • Automated web tests

    Hi can you advise me any good tools or frameworks for automated web tests? Ideal framework is integrated into Visual Studio, has tools for recording of tests, abbility to customize test steps using .NET code (C#, VB.NET), documentation includes How-Do-I screencasts. The best I have found looks to be from ArtOfTest. Any other suggestions? Thanks
    Posted to Getting Started (Forum) by radco on 9/22/2009
  • Re: Automated web tests

    I know about this, so something else??
    Posted to Getting Started (Forum) by radco on 9/22/2009
  • Exceptions and StackTrace

    Hi, I used to catch unexpected exceptions and record them to database for later analysis. I recorded Message, Type and StackTrace of exceptions. Everything worked fine while everything was in one project. Then I decided to split functionality and business classes to separate dll and to reference it in web project. Unhandled exceptions are still captured, but StackTrace contains only data to place where call of method on class from that dll is done. It doesn`t go deeper to tell me, in which method
    Posted to Getting Started (Forum) by radco on 8/7/2009
  • How can I identify which version of Silverlight is installed in browser?

    Hi, I know how to find out if browser supports silverlight (a boolean value). But how can I identify which version is the latest? Or list of all supported? Thanks
    Posted to ASP.NET AJAX UI (Forum) by radco on 4/6/2009
Page 1 of 13 (124 items) 1 2 3 4 5 Next > ... Last »