If you want to implement this on the client side, here is a sample using CSS3 and jQuery.
jQuery(function () {
jQuery("#blinkBtn").click(function () {
jQuery("#DateTimeStamp").addClass("MakeYellow");
setTimeout(function () {
jQuery("#DateTimeStamp").removeClass("MakeYellow");
}, 500);
});
});
#DateTimeStamp {
background-color: grey;
transition: background-color 0.5s;
}
#DateTimeStamp.MakeYellow {
background-color: yellow;
}
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<input type="text" id="DateTimeStamp" />
<button id="blinkBtn">Blink</button>
If you want it to be conditional, you can try something like this in razor. It may not be the most elegant solution, but providing more context would help improve the implementation.
@if(ViewBag.MyCondition) {
<script type="text/javascript">
jQuery(function () {
jQuery("#DateTimeStamp").focus();
jQuery("#DateTimeStamp").addClass("MakeYellow");
setTimeout(function () {
jQuery("#DateTimeStamp").removeClass("MakeYellow");
}, 500);
});
</script>
}