Jul 08, 2011, 3:14 PM
[CLOSED] Calling a code-behind function from my aspx page
Hi,
I had this code before and for some reason it's not working now. It won't call the MyLanguage function which is in my code behind. Did something change on that level? I didn't see anything in the changelog notes about that.
Bert
I had this code before and for some reason it's not working now. It won't call the MyLanguage function which is in my code behind. Did something change on that level? I didn't see anything in the changelog notes about that.
<ext:Panel ID="pnlTimestamps" runat="server" Border="false">
<Content>
<div style="width:auto;font-size:10px;font-family:Arial,Helvetica;" align="center"><b><% If MyLanguage().Equals("F") Then %>Créé:<% Else %>Created:<%End If%></b>
<ext:Label ID="lblCreateUserID" runat="server" Text="" /> ·
<ext:Label ID="lblCreateTimestamp" runat="server" Text="" />
<b><% If MyLanguage().Equals("F") Then %>Modifié:<% Else %>Last Updated:<%End If%></b>
<ext:Label ID="lblUpdateUserID" runat="server" Text="" /> ·
<ext:Label ID="lblUpdateTimestamp" runat="server" Text="" /></div>
</Content>
</ext:Panel>
Here is the MyLanguage function: Protected Function MyLanguage() As String
If FollowMe.GetCurrentLanguage() = Language.French Then
Return "F"
Else
Return "E"
End If
End Function
Thanks,Bert
Last edited by Daniil; Jul 11, 2011 at 9:39 AM.
Reason: [CLOSED]