in

Browse by Tags

  • ASP.NET MVC Paged Collection Question

    I am trying to use strongly typed viewdata with my MVC and I need to page through my collection, I am very new to subsonic and I have only been able to find my paged collection back as a IDataReader and I would like it back as a collection. Here is my typed ViewData class: Public Class CustomerControllerViewData...
    Posted to Code Discussion (Forum) by alivemedia on 05-12-2008
  • MVC Controller Query/List exception

    I'm using the MVC templates and SubSonic 2.0.3. When trying to get a collection using the controller, I get: "SqlException was unhandled by user code; Incorrect syntax near the keyword 'FROM'." If I inspect the sql using GetSql() on the query, I get the following: "/* GetSelectSql...
    Posted to Code Discussion (Forum) by birderrob on 02-16-2008
  • Return a typed object from a stored procedure

    Howdy, Given I'm trying this quite late on a Friday afternoon and half the office is drinking beer, it may very well be that the answer is staring me in the face. What I'm trying to do is to run a stored procedure to check login credentials and return a profile (user) record cast to an Profile...
    Posted to Code Discussion (Forum) by Nath on 02-08-2008
  • MVC, Stored Procedures and Typed Collection

    Howdy all subsonic lovers! Got a question thats been bugging me and just aren't sure wether i can do what i'm trying to do, or if i should be looking at the 2.1 version. I'm using the MVC templates and have set the stored proc's to be incorporated into each class (eg. Vote, Profile, CMSUser...
    Posted to Code Discussion (Forum) by Nath on 02-06-2008
  • MVC templates and joins

    Hi, I've just switched to Rob Connery's MVC templates and I'm wandering : since it's only the controler that's supposed to actually perform load/update queries against the database, which controller should be used when I want to run a query with joins ? Does someone have some working...
    Posted to Code Discussion (Forum) by d.th on 01-29-2008
  • MVC, controller Save(object, string username) question

    I don't completely understand the MVC, SubSonic, ActiveRecord pattern. My controller classes have the typical Save, Insert, Delete, etc methods. And, I think all of them conform to a similar pattern of accepting a 'username' parameter. Is this typical of the ActiveRecord pattern? But, there...
    Posted to Code Discussion (Forum) by kasdoffe on 01-28-2008
  • Errors Collection and IsDirty?

    I actually have two questions: 1. Is there a reason the Errors collection on the generated objects is protected? I would think the collection would contain useful info to pass back to the UI. I modified the templates to accomodate my needs, but was curious if it was set up this way for a specific reason...
    Posted to Code Discussion (Forum) by sweeperq on 01-28-2008
  • MVC Preview Video and overriding Controller methods, using 'new' keyword

    I've watched the preview video, downloaded the templates, generated and everything looks good...but I can't override the Insert method of my PersonController class using the 'new' keyword. This keyword only hides inherited methods doesn't it? And, a partial class is not inherited...
    Posted to Code Discussion (Forum) by kasdoffe on 01-25-2008
Page 1 of 1 (8 items)