Couple of Questions about Rolodex Example

Couple of Questions about Rolodex Example

Old forum URL: forums.lhotka.net/forums/t/6146.aspx


CyclingFoodmanPA posted on Tuesday, January 13, 2009

Ok, I finally got the Rolodex example to work.  All my Wcf error messages were due to me NOT having the Web project as the StartUp project.  Glad I finally figured that out through some blogs on this forum.

Now, I am taking a small of the application I am re-architecting and am going to rewrite it utilizing Csla 3.6 and Silverlight 2.  Need to do some by hand before CodeComplete comes out with code to generate the complete application with Silverlight.  I always feel like I have to "dig in" and get my hands dirty and figure stuff out before utilizing a code generator.  Need to know what is going on so when I make changes, I don't totally mess things up!

I notice there are 3 files under the Rolodex.Business.Server project in the Security directory.  Those files are also shared in the Security directory under the Rolodex.Business.Client project.  The question I have is how did those files get to the Client project directory Security folder.  I have added existing files and it seems to copy them there, but in the Rolodex project, they are shared.  I like that better because if you  modify one, it gets modified in both places.  So, how did you get them to be shared?

Also, how does the Rolodex project know to fire up the LoginControl.xaml?  I have been looking all over the files to find out how it knows to fire up that control first, but cannot find it.

Thank you,

Keith

 

 

 

sergeyb replied on Tuesday, January 13, 2009

You need to right-click on .Client’s project folder, select add existing item, browse to .Server project, select an items to add, click on dropdown arrow on OK button, select Add as link.

 

Login control is initially part of Page.Xaml, so it just shows up as part of initial rendering.

 

 

Sergey Barskiy

Principal Consultant

office: 678.405.0687 | mobile: 404.388.1899

cid:_2_0648EA840648E85C001BBCB886257279
Microsoft Worldwide Partner of the Year | Custom Development Solutions, Technical Innovation

 

From: CyclingFoodmanPA [mailto:cslanet@lhotka.net]
Sent: Tuesday, January 13, 2009 3:49 PM
To: Sergey Barskiy
Subject: [CSLA .NET] Couple of Questions about Rolodex Example

 

Ok, I finally got the Rolodex example to work.  All my Wcf error messages were due to me NOT having the Web project as the StartUp project.  Glad I finally figured that out through some blogs on this forum.

Now, I am taking a small of the application I am re-architecting and am going to rewrite it utilizing Csla 3.6 and Silverlight 2.  Need to do some by hand before CodeComplete comes out with code to generate the complete application with Silverlight.  I always feel like I have to "dig in" and get my hands dirty and figure stuff out before utilizing a code generator.  Need to know what is going on so when I make changes, I don't totally mess things up!

I notice there are 3 files under the Rolodex.Business.Server project in the Security directory.  Those files are also shared in the Security directory under the Rolodex.Business.Client project.  The question I have is how did those files get to the Client project directory Security folder.  I have added existing files and it seems to copy them there, but in the Rolodex project, they are shared.  I like that better because if you  modify one, it gets modified in both places.  So, how did you get them to be shared?

Also, how does the Rolodex project know to fire up the LoginControl.xaml?  I have been looking all over the files to find out how it knows to fire up that control first, but cannot find it.

Thank you,

Keith

 

 

 



CyclingFoodmanPA replied on Tuesday, January 13, 2009

Thank you Sergey, you are the man!  I was close on the LoginControl, but I didn't know about the "Add as Link" functionality.  That is awesome.  I always just added both before but the add as link makes sense.  Anyway, thanks for your help.

Keith

 

Copyright (c) Marimer LLC