{"id":1727,"date":"2014-01-31T16:29:34","date_gmt":"2014-01-31T16:29:34","guid":{"rendered":"http:\/\/galhano.com\/blog\/?p=1727"},"modified":"2014-01-31T16:33:01","modified_gmt":"2014-01-31T16:33:01","slug":"concatenate-data-fields-as-binding-expression","status":"publish","type":"post","link":"http:\/\/galhano.com\/blog\/?p=1727","title":{"rendered":"Concatenate data fields as binding expression"},"content":{"rendered":"<p>Concatenate data fields as binding expression:<br \/>\n[html]<br \/>\n&lt;asp:label id=&quot;Label1&quot; runat=&quot;server&quot;<br \/>\n     text='&lt;%# String.Format(&quot;{0}, {1}&quot;, Eval(&quot;ContactLastName&quot;), Eval(&quot;ContactFirstName&quot;)) %&gt;&#8217;&gt;<br \/>\n&lt;\/asp:label&gt;<br \/>\n[\/html]<\/p>\n<p>how to implemented mailto in Hyperlink asp control inside the gridview:<br \/>\n[html]<br \/>\n&lt;asp:HyperLink id=&quot;hl1&quot; runat=&quot;server&quot;<br \/>\n   NavigateUrl='&lt;%# Eval(&quot;Email&quot; , &quot;mailto:{0}&quot;) %&gt;&#8217;<br \/>\n   Text='&lt;%# Eval(&quot;Email&quot;) %&gt;&#8217;&gt;<br \/>\n&lt;\/asp:HyperLink&gt;<br \/>\n[\/html]<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Concatenate data fields as binding expression: [html] &lt;asp:label id=&quot;Label1&quot; runat=&quot;server&quot; text='&lt;%# String.Format(&quot;{0}, {1}&quot;, Eval(&quot;ContactLastName&quot;), Eval(&quot;ContactFirstName&quot;)) %&gt;&#8217;&gt; &lt;\/asp:label&gt; [\/html] how to implemented mailto in Hyperlink asp control inside the gridview: [html] &lt;asp:HyperLink id=&quot;hl1&quot; runat=&quot;server&quot; NavigateUrl='&lt;%# Eval(&quot;Email&quot; , &quot;mailto:{0}&quot;) %&gt;&#8217; Text='&lt;%# Eval(&quot;Email&quot;) %&gt;&#8217;&gt; &lt;\/asp:HyperLink&gt; [\/html]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"close","ping_status":"close","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[33,4],"tags":[],"class_list":["post-1727","post","type-post","status-publish","format-standard","hentry","category-code-snippets","category-aspnet","author-admin"],"_links":{"self":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1727","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1727"}],"version-history":[{"count":5,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1727\/revisions"}],"predecessor-version":[{"id":1732,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/1727\/revisions\/1732"}],"wp:attachment":[{"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1727"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1727"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/galhano.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1727"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}