Take a look at the onItemDataBound function in this example:
http://dotnetslackers.com/projects/AjaxDataControls/SourceCode.aspx?url=/projects/AjaxDataControls/DataList/Basic.aspx
Now we can make the following additions
var spnUnitPrice = item.findControl('spnUnitPrice'); // this line is already there.
spnUnitPrice.onClick = function() { showModal() }; // add the onclick handler
And your showModal() function would then simply show the modal. If you were using jquery your function would look like this:
function showModal()
{
$("#dialog").dialog();
}
Let me know if you need more help :)