Reputation: 5
I read all the posts about this problem but it did not help me. I tried different ways to solve this problem, if I do it like this:
<asp:Button ID="Button_Save" class="btnSave" runat="server" Text="<%# GetLabelName(objUserSession.lngLanguageID, "Button_Save")%>" />
i have this problem: The server tag is not well formed. If like that:
<asp:Button ID="Button_Save" class="btnSave" runat="server" Text="<%# GetLabelName(objUserSession.lngLanguageID, 'Button_Save')%>" />
i have another problem: BC30201: Expression expected. And if like that:
<asp:Button ID="Button_Save" class="btnSave" runat="server" Text='<%# GetLabelName(objUserSession.lngLanguageID, "Button_Save")%>' />
my result is: <input type="submit" name="ctl00$MainContent$Button_Save" value="" id="MainContent_Button_Save" class="btnSave">
Upvotes: 0
Views: 901
Reputation: 5
I found a very good solution to this problem, it is here: THE CODEEXPRESSIONBUILDER
Upvotes: 0
Reputation: 13965
Your third option is the usual way it's done. Are you certain that, with those specific parameters, your function is returning a non-null, non-empty value?
Upvotes: 0