How to dispose object and datacontext objects

2009-06-15 Thread KCube
Can anyone please help me ... How to dispose object and linq to sql datacontext objects. i dont want to repeat the dispose method in every controller.. can it be done in one base controller and inherit from those.. or is there any other way?

Re: Monorail project template for VS 2008

2009-06-15 Thread KCube
...@gmail.com wrote: I definitely am not sure what you are asking for. On Fri, Jun 12, 2009 at 12:23 PM, Kcube kanesh...@gmail.com wrote: Monorail project template for VS 2008 I have seen two there, when Google. But am not impresses with those. Can anyone guide me please? -- Ken Egozi.http

How to dispose object , context, linq to sql data data context with sigleton

2009-06-12 Thread Kcube
appropriate for this.. or any other ideas? Many Thanks, Kcube --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com

Monorail project template for VS 2008

2009-06-12 Thread Kcube
Monorail project template for VS 2008 I have seen two there, when Google. But am not impresses with those. Can anyone guide me please? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To

Is it possible to redirect to root controller using $HtmlHelper.LinkTo() method.

2009-05-23 Thread Kcube
Is it possible to redirect to root controller using $HtmlHelper.LinkTo () method. its take me to the current controller method. How can i move to other controller methods. Is it possible with LinkTo Current View : UserArea/Home/User.vm $HtmlHelper.LinkTo(Profile, Profile, Home) is

Replacement for LinkTo() in FormHelper, HtmlHelper is deprecated, right?

2009-05-23 Thread Kcube
Can i get the replacement for LinkTo() in FormHelper as HtmlHelper is deprecated. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to

Where to call project initialization methods (implementation methods call)

2009-05-22 Thread Kcube
I want to call the implementation for some of my class at runtime, this is done only once, where should i specify this will it work with Global.asax . But the application host details is need I need to access the monorial context for virtual directory implementation methods i.e. (monorail

Is it possible to use redirectToUrl with out using the extension '.castle'

2009-05-22 Thread Kcube
Is it possible to use redirectToUrl with out using the extension '.castle' What i have is this RedirectToUrl(/Login/UserLogin.castle); Can i achieve this , I just dont want to hardcode the '.castle' extensin to code RedirectToUrl(/Login/UserLogin);

Re: Is it possible to use redirectToUrl with out using the extension '.castle'

2009-05-22 Thread Kcube
Thanks, So with RedirectToUrl (with out controller , action) it wont work with out extension. right? On May 22, 1:35 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Use Redirect(Login, UserLogin) Kcube wrote: Is it possible to use redirectToUrl with out using the extension '.castle

Can i build a project from trunk itself.

2009-05-20 Thread Kcube
Is there any tool which support for build from project trunk --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users group. To post to this group, send email to castle-project-users@googlegroups.com To

Re: How get session variable inside layout.

2009-05-19 Thread Kcube
Many Thanks, KCube On May 18, 6:13 pm, Ken Egozi egoz...@gmail.com wrote: try to call base.Initialise() at the beginning of your override. On Mon, May 18, 2009 at 3:38 PM, Roelof Blom roelof.b...@gmail.com wrote: MonoRail uses the ASP.NET session, so make sure sessionState mode=Off

Re: How get session variable inside layout.

2009-05-19 Thread Kcube
) (((Castle.MonoRail.Framework.Adapters.DefaultRailsEngineContext) ((Castle.MonoRail.Framework.Controller)(this)).Context).Session))' is null Many Thanks, Kcube On May 19, 11:20 am, Ken Egozi egoz...@gmail.com wrote: there isn't any difference between getting to the server from a button, a link, or a curl.exe call from console. now please make

Re: How get session variable inside layout.

2009-05-19 Thread Kcube
Initialize()         {             string s = ;             Context.Session[s] = s;             base.Initialize();         } is not throwing anything using a rather new MR build. On Tue, May 19, 2009 at 9:45 AM, Kcube kanesh...@gmail.com wrote: I have removed the User object and made

Re: How get session variable inside layout.

2009-05-19 Thread Kcube
its 1.0.3.4333. Its from RC3 download. I wil try to build from truck and get back soon. Hope this was the real issue. Thanks very much Many Thanks Kcube On May 19, 12:00 pm, Ken Egozi egoz...@gmail.com wrote: 1.0.3.X   what is X? where did you get it from? is it from the RC3 download

Re: How get session variable inside layout.

2009-05-19 Thread Kcube
Yep with the new build dll from trunk, its working great.. Thanks once again. But is the trunk matured enough, will there be much issues with the truck version, as it is not a major release. Cheers! Kcube On May 19, 12:11 pm, Kcube kanesh...@gmail.com wrote: its 1.0.3.4333. Its from RC3

Re: How get session variable inside layout.

2009-05-18 Thread Kcube
thanks very much On May 18, 4:27 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Override the Initialize()-method in your controller, there you should have access to the http-context and the session, I think. Kcube wrote: How get session variable inside layout. I have tried

Re: How get session variable inside layout.

2009-05-18 Thread Kcube
]; PropertyBag[usernameforemsa] = test User; base.Initialize(); } session object is null Thanks Kcube On May 18, 4:40 pm, Kcube kanesh...@gmail.com wrote: thanks very much On May 18, 4:27 pm, Jimmy Shimizu jimmy.shim...@gmail.com wrote: Override the Initialize

Re: How get session variable inside layout.

2009-05-18 Thread Kcube
This is the error message i get This was the exception: An exception of type 'System.NullReferenceException' occurred in XX.XXX..DLL but was not handled in user code Additional information: Object reference not set to an instance of an object. Thanks Kcube On May 18, 5:00 pm, Kcube

Re: How get session variable inside layout.

2009-05-18 Thread Kcube
On Mon, May 18, 2009 at 2:00 PM, Kcube kanesh...@gmail.com wrote: i have tried with the below snippet.. but its not working  protected override void Initialize()        {            UserProfile user = (UserProfile)this.Context.Session [GBL_CURRENT_USER];            IUserProfile

Nunit test not working with microsoft MembershipProvider

2009-05-14 Thread Kcube
Am using castle monorail + linq to sql + microsoft memebrship. I want to write test case for user login and other methods, the methods are working fine. But when i call the method from nunit project the memebership provider methods are not working. I know some thing is to done to activate the

How to store session object with monorail?

2009-05-13 Thread Kcube
Hi, I am new to monorail, sorry for asking the basic question. How to store session object with monorail? I have seen that the session object is handled in httpcontext. but i cant access httpcontext every where in the project. its showing null. ie in base cass.

Good tutorial's on castle monorail

2009-05-13 Thread Kcube
I have seen http://www.castleproject.org/MonoRail/documentation/index.html any other good tutorial for basic and advance monorail features.. any idea of tutorial for monorail project artitecture creation. is how the filter's should be created ? how session and context should be handles? how

Re: Good tutorial's on castle monorail

2009-05-13 Thread Kcube
Thanks for links? I am using NVelocity, Linq to Sql etc with monorail. More tutorial's reference are welcome Many Thanks KCube On May 13, 2:05 pm, Wayne Douglas wa...@codingvista.com wrote: If your using .NET - check out Colins Ramsays screencasts. They're a nice mix up of MR, ExtJs

How to call method of component from other project with out adding reference

2009-05-11 Thread Kcube
How to call method of component from other project with out adding reference. I feel is method in routing class, which help us to call methods by passing compoment url and methods name.. Can anyone help me to identify it. Thanks --~--~-~--~~~---~--~~ You received

How to call method of controller from other project with out adding reference.

2009-05-11 Thread Kcube
How to call method of controller from other project with out adding reference. I feel is method in routing class, which help us to call methods by passing controller url and methods name.. Can anyone help me to identify it. Thanks --~--~-~--~~~---~--~~ You

Re: How to call method of component from other project with out adding reference

2009-05-11 Thread Kcube
Thanks Kcube On May 11, 4:06 pm, Roelof Blom roelof.b...@gmail.com wrote: Perhaps this article is of use:http://hammett.castleproject.org/?p=159 On Mon, May 11, 2009 at 12:29 PM, Kcube kanesh...@gmail.com wrote: Sorry actually the issue was something else i interpreted the issue wrongly

How can i implement caching with monorail - manually.

2009-05-09 Thread Kcube
How can i implement caching with monorail, I have see that currently monorail does not support caching, is there any snippet available for this --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Castle Project Users