Cant make any variable declaration when implementing CSS Friendly Login Adapter for Localization Purposes

Mar 6, 2009 at 12:02 PM

Hi,

 Please bear with me as I am a beginner but with perseverance was able to successfully deployed the CSS Login Adapter provided by Codeplex and further trip it up with Sogeti-Phoenix Blog site in my small-project website
http://sogeti-phoenix.com/Blogs/category/ASPNET-Login-Control.aspx

 Things are looking good but as I compiled-run it, but then got an error that tells me that my variables have not been declared or so (e.g. "Name "LabelRUMember is not declared").

 This happens in the  <asp:Login runat="server"><LayoutTemplate>.....</LayoutTemplate></asp:Login> area.
All those Label tags outside this area poses no issues.

Partial code shown in login code
<asp:Login runat="server">
<LayoutTemplate>
<div class="usr s"><asp:Label ID="UserNameLabel" AssociatedControlID="UserName" runat="server" Text="username: " meta:resourcekey="UserNameLabelResource1"></asp:Label></div>
</LayoutTemplate>
</asp:Login>

My trigger is below within my Master.vb, code behind file.
 
Protected Sub set02_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles set02.Click
Dim lang As String = set02.CommandArgument
If (lang IsNot Nothing) Then
If lang <> "" Then
Thread.CurrentThread.CurrentUICulture = New CultureInfo(lang)
Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture(lang)
setLang.Text = Resources.Res.setLang
setCntry.Text = Resources.Res.setCntry
set01.Text = Resources.Res.set01
set02.Text = Resources.Res.set02
set01.CommandArgument = Resources.Res.cntrylg01
set02.CommandArgument = Resources.Res.cntrylg02
lblloginnow.Text = Resources.Res.lblloginnow
UserNameLabel.Text = Resources.Res.UserNameLabel      'SAMPLE FROM ABOVE: THIS ONE CAN'T BE DECLARED SO AS THOSE IN GREEN BELOW}
.Text = Resources.Res.lblrumember
'lfp.Text = Resources.Res.lfp
'ljn.Text = Resources.Res.ljn
'loginbtn.Text = Resources.Res.loginbtn
'lpwd.Text = Resources.Res.lpwd
'lregh.Text = Resources.Res.lregh
m01.Text = Resources.Res.m01
m02.Text = Resources.Res.m02
m03.Text = Resources.Res.m03
m04.Text = Resources.Res.m04
m05.Text = Resources.Res.m05
m06.Text = Resources.Res.m06
m07.Text = Resources.Res.m07
m08.Text = Resources.Res.m08
m09.Text = Resources.Res.m09
m10.Text = Resources.Res.m10
End If
End If
End Sub

The LoginAdapter.cs is quite long so can just view it in the site that I just mentioned earlier.
Any comments or advice greatly appreciated. Thanks!