locked
Eval Statement RRS feed

  • Question

  • User-1499457942 posted

    Hi

      I have below lines . In this value 

    href="<%#Eval("GLINK")%>"     . I want to use Evaluate value like 

    '<%#DataBinder.Eval(Container.DataItem,"EntryNo")%>' + '_' + "<%#Eval("GLINK")%>". How these can be combined into one

    <td>
                                                            <a href="<%#Eval("GLINK")%>" target="_blank" style="color: #00a1eb">
                                                                <asp:Label ID="lblGNo" runat="server" Text='<%#Eval("GNo")%>'></asp:Label>
                                                            </a>
                                                        </td>
                                                        <td>
                                                            <asp:HiddenField ID="hdfEntryNo" Value='<%#DataBinder.Eval(Container.DataItem,"EntryNo")%>' runat="server" />
                                                        </td>

    Thanks

    Tuesday, July 3, 2018 12:07 PM

Answers

  • User-492460945 posted

    Hi,

    Try this one..

    <%#DataBinder.Eval(Container.DataItem,"EntryNo") + '_' + Eval("GLINK")%>

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, July 3, 2018 12:24 PM