I fairly new to asp.net, and I need some help with writing a conditional statement to change a background row color of a data-table based on a JavaScript clock I have running on the webpage.
There is a particular column on my Datagrid called scheduled time, where I want that column to listen to the clock that I have defined on the webpage. The Datagrid table rows should change background colors based on the "scheduledTime" compared to the clock. There is a xlsx attached for a visual reference.
Expand|Select|Wrap|Line Numbers
- // Clock variables
- var currentTime = new Date ( );
- var currentHours = currentTime.getHours ( );
- var currentMinutes = currentTime.getMinutes ( );
- var currentSeconds = currentTime.getSeconds ( );
Thank you all for taking the time!