oooo.....comeon....any one, any suggestion On May 19, 4:08 pm, Богдан <[email protected]> wrote: > ok...finally I got back to this.....as I have red and understood my > project uses webforms view engine, then why SetController is ignored > > the controller is following: > public class MyImagesController: SmartDispatcherController > { > public void Index() > { > > } > > public void MyProfile() > { > if (this.PropertyBag["MyImages"] == null) > { > UserImageCollection images = > TheraSimplicity.Model.Core.UserImage.FindForUser(AspNetForums.Users.GetLoggedOnUser().UserId); > Utilities.Sorter.Sort(images, "Name", > Utilities.SortDirection.Ascending); > this.PropertyBag["MyImages"] = images; > } > } > > } > > and I have got aspx page with aspx.cs file as following: > public class MyProfile : System.Web.UI.Page, IControllerAware > { > private void Page_Load(object sender, EventArgs e) > { > } > public void SetController(IController controller, > IControllerContext context) > { > _controller = (MyImagesController)controller; > _controller.UseBook = false; > } > } > > } > > What am I missing? It should be simple but I can't see it > On May 14, 2:51 pm, Богдан <[email protected]> wrote: > > > > > > > > > SetController()is not being called in the code behind of the aspx > > page....to tell the truth I am working with monorails at the first > > time, I have experience in web forms and a bit asp.net mvc, so if you > > need some code just tell me which part you need. This project widely > > uses user controls(ascx) in page with monorails support, and it is for > > this purposes I need controller and it's propertybag > > > On May 13, 9:58 pm, Ken Egozi <[email protected]> wrote: > > > > I think it has to do with the webforms view engine and the lack of love it > > > got with the years. Am I correct? If that is the case then you'd need > > > someone who is comfortable with mr codebase to walk this through. As this > > > is > > > a huge leap I would think that you'd have to work hard for it and maybe > > > even > > > get some paid help > > > > On 13 במאי 2011, at 21:15, Jason Meckley <[email protected]> wrote: > > > > 1.1 to 4.0 is huge leap. you may be better of porting the changes, rather > > > than doing an in-place upgrade. another option, use the source code and > > > migrate 1 stable version at a time. the changes from v1, to v2, v3, vn > > > will > > > be easier to fix than jumping from v1 to vN. > > > > -- > > > You received this message because you are subscribed to the Google Groups > > > "Castle Project Users" group. > > > To post to this group, send email to > > > [email protected]. > > > To unsubscribe from this group, send email to > > > [email protected]. > > > For more options, visit this group > > > athttp://groups.google.com/group/castle-project-users?hl=en.
-- You received this message because you are subscribed to the Google Groups "Castle Project Users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/castle-project-users?hl=en.
