{"id":292,"date":"2010-12-28T16:31:09","date_gmt":"2010-12-28T20:31:09","guid":{"rendered":"http:\/\/www.iowawebnet.com\/ein\/?p=292"},"modified":"2011-01-17T17:17:13","modified_gmt":"2011-01-17T21:17:13","slug":"asp-net-databinder-eval-and-container-dataitem-vb","status":"publish","type":"post","link":"https:\/\/www.iowawebnet.com\/ein\/2010\/12\/asp-net-databinder-eval-and-container-dataitem-vb\/","title":{"rendered":"Databinder.Eval and Container.DataItem (VB)"},"content":{"rendered":"<p>Array of Strings:<\/p>\n<blockquote><p>&lt;%# Container.DataItem %&gt;<\/p><\/blockquote>\n<p>Field from DataView:<\/p>\n<blockquote><p>&lt;%# Container.DataItem(&#8220;FirstName&#8221;) %&gt;<\/p><\/blockquote>\n<p>Collection of objects:<\/p>\n<blockquote><p>&lt;%# Container.DataItem.FirstName %&gt;<\/p><\/blockquote>\n<p>Example<\/p>\n<blockquote><p>&lt;a href='&lt;%#\u00a0 Databinder.Eval(Container.DataItem,&#8221;ID&#8221;,&#8221;default.aspx?CategoryId={0}&#8221; ) %&gt;&#8217;&gt;<\/p><\/blockquote>\n<p>In case you use jQuery or Colorbox to open in a new window, here is example:<\/p>\n<blockquote><p>&lt;a class=&#8221;<a title=\"Colorbox\" href=\"http:\/\/www.iowawebnet.com\/ein\/?p=315\" target=\"_blank\">colorbox1<\/a>&#8221;\u00a0 href='&lt;%# &#8220;default.aspx?CategoryId=&#8221; + Cstr(Databinder.Eval(Container.DataItem, &#8220;CustomerID&#8221;))%&gt;&#8217;&gt;<\/p><\/blockquote>\n<p>Recordset line number<\/p>\n<blockquote><p>&lt;%#Container.DataItemIndex + 1%&gt;.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Array of Strings: &lt;%# Container.DataItem %&gt; Field from DataView: &lt;%# Container.DataItem(&#8220;FirstName&#8221;) %&gt; Collection of objects: &lt;%# Container.DataItem.FirstName %&gt; Example &lt;a href='&lt;%#\u00a0 Databinder.Eval(Container.DataItem,&#8221;ID&#8221;,&#8221;default.aspx?CategoryId={0}&#8221; ) %&gt;&#8217;&gt; In case you use jQuery or Colorbox to open in a new window, here is example: &lt;a class=&#8221;colorbox1&#8221;\u00a0 href='&lt;%# &#8220;default.aspx?CategoryId=&#8221; + Cstr(Databinder.Eval(Container.DataItem, &#8220;CustomerID&#8221;))%&gt;&#8217;&gt; Recordset line number &lt;%#Container.DataItemIndex + 1%&gt;.<\/p>\n","protected":false},"author":35,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17,16],"tags":[19,24,23,21],"class_list":["post-292","post","type-post","status-publish","format-standard","hentry","category-applications","category-net","tag-asp-net","tag-container-dataitem","tag-databinder-eval","tag-visual-studio"],"_links":{"self":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/292"}],"collection":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/users\/35"}],"replies":[{"embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/comments?post=292"}],"version-history":[{"count":28,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/292\/revisions"}],"predecessor-version":[{"id":441,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/posts\/292\/revisions\/441"}],"wp:attachment":[{"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/media?parent=292"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/categories?post=292"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.iowawebnet.com\/ein\/wp-json\/wp\/v2\/tags?post=292"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}