<p>What is the best way to use multiple EVAL fields in a GridView ItemTemplate?</p>

<p>Looking to have some control over formatting for appearance as well as setting up hyperlinks/javascript etc.</p>

[{'answer_id': 55629, 'author': 'Dhaust', 'author_id': 242, 'author_profile': 'https://Stackoverflow.com/users/242', 'pm_score': 3, 'selected': False, 'text': '<p>I had previously used this (bad, I know):    </p>\n\n<pre><code>&lt;%# Eval("Name1", "{0} - ")%&gt; &lt;%#Eval("Name2")%&gt;\n</code></pre>\n\n<p>Result = \'John - Smith\'</p>\n\n<p>But just discovered that I can also put TWO (or more) Evals in the same data-bound group:  </p>\n\n<pre><code>&lt;%#Eval("Name1") &amp; " - " &amp; Eval("Name2")%&gt;\n</code></pre>\n\n<p>Result = \'John - Smith\'  </p>\n\n<p>Or  </p>\n\n<pre><code>&lt;%# "First Name - " &amp; Eval("Name1") &amp; ", Last Name - " &amp; Eval("Name2")%&gt;  \n</code></pre>\n\n<p>Result = \'First Name - John, Last Name - Smith\'</p>\n'}, {'answer_id': 55681, 'author': 'Forgotten Semicolon', 'author_id': 1960, 'author_profile': 'https://Stackoverflow.com/users/1960', 'pm_score': 7, 'selected': True, 'text': '<p>Even clearer, IMO, is:</p>\n\n<pre><code>&lt;%# String.Format("{0} - {1}", Eval("Name1"), Eval("Name2")) %&gt;\n</code></pre>\n'}, {'answer_id': 55688, 'author': 'Esteban Araya', 'author_id': 781, 'author_profile': 'https://Stackoverflow.com/users/781', 'pm_score': 3, 'selected': False, 'text': "<p>Eval and Bind both suck.<br>\nWhy get the property through reflection? You can access it directly like this:</p>\n\n<pre>\n((MyObject)Container.DataItem).MyProperty\n</pre>  \n\n<p>It's not like the object is unknown to you at runtime. That's my two cents, anyhow.</p>\n"}, {'answer_id': 36522821, 'author': 'Durgesh Pandey', 'author_id': 5030579, 'author_profile': 'https://Stackoverflow.com/users/5030579', 'pm_score': 2, 'selected': False, 'text': '<p>I have a easiest way to do this same thing...</p>\n\n<pre><code>&lt;asp:Label ID="lblName" runat="server" Text=\'&lt;%#Eval("FirstName").ToString() +", "+ Eval("LastName").ToString() %&gt;\'&gt;&lt;/asp:Label&gt;\n</code></pre>\n\n<p>.</p>\n\n<pre><code>&lt;%#Eval("FirstName").ToString() +", "+ Eval("LastName").ToString() %&gt;\n</code></pre>\n\n<p>Here both objects are converted into string the concatenate them.</p>\n'}]
['https://Stackoverflow.com/questions/55607', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/242/']