Click here to Skip to main content
15,887,267 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I would like to know, if it is possible to add multiple data fields to the hyperlink control, in order to create querystring (URL).

I attempted below sing EVAL but this property only takes into account 2 arguments. Is there another way to do this, if so, please advice further.
ASP.NET
<asp:TemplateField HeaderText="Details">
              <ItemTemplate>
     <asp:HyperLink ID="HyperLink1" runat="server"
         NavigateUrl='<%# Eval("uID","uEmailAddress", @"http://localhost/Test.aspx?code={0}&email={4}&mag=163") %>'
         Text='View More...'>
     </asp:HyperLink>
 </ItemTemplate>
         </asp:TemplateField>


Many thanks
Posted
Updated 14-Jun-23 23:36pm

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900