Search

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

Matching Posts

  • ViewContext in UserControls

    Its always null? When Html.RenderUserControl is called is the ViewContext not passed on?
    Posted to ASP.NET MVC (Forum) by netstruc65 on 4/3/2008
    Filed under: MVC ASP.NET, usercontrols
  • Routing with querystring parameters

    I'm replacing an existing asp.net app, with an asp.net mvc app. The old app used a lot of querystring params, and I need to map those into controller actions, everytime I stick ? or & into a route i get a runtime error. Here's what I'm trying to do. www.myapp.com/Products/Review.aspx?prodID=1456 should be replaced by something more RESTful, but I need to maintain backwards compatibility because of SEO, bookmarks, favorites, etc. I tried, RouteTable.Routes.Add(new Route("Product
    Posted to ASP.NET MVC (Forum) by netstruc65 on 4/1/2008
    Filed under: RESTFul, routing, ASP.NET MVC
  • ActionFilters

    If you throw an exception out of an Action Filter's OnActionExecuting, what catches the exception? I'm trying to create an AuthorizationFilter, but can't figure out what to do when the user is not authorized to view the controller action they're requesting. Do you redirect from inside the OnActionExecuting?
    Posted to ASP.NET MVC (Forum) by netstruc65 on 4/1/2008
    Filed under: asp mvc, ASP.NET MVC, Authentication
  • View and Master Page must inherit from same type

    I have several views that use different view data types. However, they all use the same master page. I thought I could derive the different view data types from a base class, and then derive the master from that same base type, but the compiler doesn't like it. I am I using the wrong approach here? I could use an interface but then all the different view data types have to implement the same functionality. I'd like to use a base class to share the functionality.
    Posted to ASP.NET MVC (Forum) by netstruc65 on 3/31/2008
  • Re: Code Blocks vs. Code Behind

    It sounds like its a personal preference whether or not you use code blocks or use the code behind.
    Posted to ASP.NET MVC (Forum) by netstruc65 on 3/28/2008
  • Code Blocks vs. Code Behind

    I'm currently building an ASP.Net MVC demo for our company, with the goal to win them over that it is a feasible pattern/framework for us to use. One thing I'm struggling with is the benefits and drawbacks to to using code blocks, <% %>, to fill the page with data, create forms, etc., versus using server controls and filling their values in the code behind. I know this is a loaded question, but any argument for or against would be welcomed.
    Posted to ASP.NET MVC (Forum) by netstruc65 on 3/28/2008
    Filed under: ASP.NET MVC
  • Re: Custom Server Controls

    But there's no render, pre-render, oninit anymore right? So if I was migrating an existing asp.net server control I'd need to move all the code into the pageload?
    Posted to ASP.NET MVC (Forum) by netstruc65 on 3/19/2008
  • Custom Server Controls

    Is it possible to use custom server controls with MVC? I'm currently building a few sites with this new framework and they need to share a server control. Can I write a server control as long as it only uses the page load of the page life cycle?
    Posted to ASP.NET MVC (Forum) by netstruc65 on 3/19/2008
    Filed under: server controls, ASP.NET MVC, asp.net mvc httpcontext iserviceprovider, controls
Page 1 of 1 (8 items)
Microsoft Communities