Mohammed Nadeem

Mohammed Nadeem

  • 1.9k
  • 78
  • 7.4k

Change datalist row background color if based on time

Jun 22 2017 3:31 AM
i am having a registration page where a candidate registers and i am having a screen which displays all the candidates registered names( In Datalist control). the user waits for his turn for the next round and can see his name on display waiting list.
i am having a datetime column with getdate() function in sqlserver .

From the time candidate has registered i want to change background color of particular row i.e if candidate time passes 30 minutes background color of datalist row should be changed to orange and if crosses one hour color should be changes to red..

Answers (4)