none
When using Eval in a control VS shows “There are newline characters in constants" RRS feed

  • Question

  • Here is the code:

    <asp:HyperLink runat="server" ID="link"
                            NavigateUrl='<%# "AdminProducts.aspx?DepartmentID="+Request.QueryString["DepartmentID"]+"&amp;CategoryID="+Eval("CategoryID") %>' Text="View Products">
    </asp:HyperLink>

    • Moved by CoolDadTx Monday, December 4, 2017 3:02 PM ASP.NET related
    Monday, December 4, 2017 1:30 PM

All replies

  • Hello,

    Consider asking your question here

    https://forums.asp.net/


    Please remember to mark the replies as answers if they help and unmark them if they provide no help, this will help others who are looking for solutions to the same or similar problem. Contact via my Twitter (Karen Payne) or Facebook (Karen Payne) via my MSDN profile but will not answer coding question on either.
    VB Forums - moderator
    profile for Karen Payne on Stack Exchange, a network of free, community-driven Q&A sites

    Monday, December 4, 2017 1:41 PM
  • Thank you.
    Monday, December 4, 2017 2:26 PM