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">
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?
我找到了一个很好的解决这个问题的方法,它在这里: CODEEXPRESSIONBUILDER
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.