Problem with Logger_LoginSuccessful

Problem with Logger_LoginSuccessful

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


CyclingFoodmanPA posted on Monday, January 19, 2009

I am working on a prototype Silverlight application that is based on the Rolodex example and am getting the following warning: "Event handler 'Logger_LoginSuccessful' not found on class 'BAS.Page'"  Now, it is there as I have the following line in my Page.xaml file:

xmlns:local="clr-namespace:BAS"
<local:LoginControl x:Name="Logger" LoginSuccessfull="Logger_LoginSuccessful" Grid.Column="0" Grid.Row="0"/>

The appropriate code is also in the LoginControl.xaml.cs.  Now, when I run the app. I get an AG_E_PARSER_BAD_PROPERY_VALUE [Line: 20 Position: 60] which corresponds to the <local:LoginControl .../> line above.  I have checked and double checked my namespaces, references, etc. and am puzzeled by what is wrong.  Any help/suggestions in solving this would be most appreciated.

Thank you in advance,

Keith

 

 

sergeyb replied on Monday, January 19, 2009

Right click on Logger_LoginSuccessful” and select Go To Definition.  I suspect you do not have handler in code behind

 

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: Monday, January 19, 2009 10:40 AM
To: Sergey Barskiy
Subject: [CSLA .NET] Problem with Logger_LoginSuccessful

 

I am working on a prototype Silverlight application that is based on the Rolodex example and am getting the following warning: "Event handler 'Logger_LoginSuccessful' not found on class 'BAS.Page'"  Now, it is there as I have the following line in my Page.xaml file:

xmlns:local="clr-namespace:BAS"
<local:LoginControl x:Name="Logger" LoginSuccessfull="Logger_LoginSuccessful" Grid.Column="0" Grid.Row="0"/>

The appropriate code is also in the LoginControl.xaml.cs.  Now, when I run the app. I get an AG_E_PARSER_BAD_PROPERY_VALUE [Line: 20 Position: 60] which corresponds to the <local:LoginControl .../> line above.  I have checked and double checked my namespaces, references, etc. and am puzzeled by what is wrong.  Any help/suggestions in solving this would be most appreciated.

Thank you in advance,

Keith

 

 



CyclingFoodmanPA replied on Monday, January 19, 2009

Yep, a major ah duh on my part!  Hey Sergey, is there a way for the password textgox to have "*" as people are typing in the password.  I haven't seen a Password property on the textbox control for Silverlight yet.

Thanks for pointing out my mistake.

sergeyb replied on Monday, January 19, 2009

You have to use a different control that did not exist when Rolodex was written (beta 2).  It is called PasswordBox.

 

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: Monday, January 19, 2009 10:59 AM
To: Sergey Barskiy
Subject: Re: [CSLA .NET] RE: Problem with Logger_LoginSuccessful

 

Yep, a major ah duh on my part!  Hey Sergey, is there a way for the password textgox to have "*" as people are typing in the password.  I haven't seen a Password property on the textbox control for Silverlight yet.

Thanks for pointing out my mistake.



CyclingFoodmanPA replied on Monday, January 19, 2009

Awesome, thanks Sergey.

Copyright (c) Marimer LLC