Question

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">

Was it helpful?

Solution 2

I found a very good solution to this problem, it is here: THE CODEEXPRESSIONBUILDER

OTHER TIPS

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?

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top