Can you try something like this:
<script type="text/javascript" >
function printValue(obj){
alert(document.getElementById(obj.id).value);
}
</script>
then add this on your control:
onclick="printValue(this);";
PS: If you are having trouble getting read-only values for TextBox, then use Label instead since it is meant to display read-only text.