Home » 2010 » December » 28

Archive for December 28, 2010

Colorbox

Colorbox example 1. Create colorbox folder on your pc/server 2. Download index.html file (here) and save it in colorbox folder 3. Download jQuery.colorbox.txt file (here) and save it in colorbox folder as jQuery.colorbox.js 4. Download colorbox.txt file (here) and save it in colorbox folder as colorbox.css 5. Download images.zip file (here) save it in colorbox […]

Databinder.Eval and Container.DataItem (VB)

Array of Strings: <%# Container.DataItem %> Field from DataView: <%# Container.DataItem(“FirstName”) %> Collection of objects: <%# Container.DataItem.FirstName %> Example <a href='<%#  Databinder.Eval(Container.DataItem,”ID”,”default.aspx?CategoryId={0}” ) %>’> In case you use jQuery or Colorbox to open in a new window, here is example: <a class=”colorbox1”  href='<%# “default.aspx?CategoryId=” + Cstr(Databinder.Eval(Container.DataItem, “CustomerID”))%>’> Recordset line number <%#Container.DataItemIndex + 1%>.