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

有帮助吗?

解决方案 2

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

其他提示

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?

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top