CREATE A GRID LIKE THIS AND GIVE TWO BUTTONS GREEN AND RED IN A FOLDER
img...................
<asp:gridview id="dgvUsers" runat="server" pagesize="5" width="158px" autogeneratecolumns="False" xmlns:asp="#unknown">
DataKeyNames="status" OnRowDataBound="dgvUsers_RowDataBound" GridLines="None"
ShowHeader="False">
<columns> <asp:templatefield>
<itemtemplate>
<asp:image id="imgGreen" runat="server" height="16px" imageurl="~/Img/green.jpg">
Width="16px" />
<asp:image id="imgRed" runat="server" height="16px" imageurl="~/Img/red.jpg">
Width="16px" />
<itemstyle horizontalalign="Center">
<asp:boundfield datafield="USERNAME" headertext="USERNAME" />
<asp:boundfield datafield="Status" headertext="Status" visible="False" />
<emptydatatemplate>
<asp:image id="Image1" runat="server" imageurl="~/Img/green.jpg" />
use a timer to bind the grid with the datatable from the database.
<asp:timer id="tmrUser" ontick="tmrUser_Tick" runat="server" interval="30000" xmlns:asp="#unknown">
call the databind function in timer tick event.. and change the interval to change refresh time...I suggest to put the grid in an update pannel.....
HOPE this will Work...!!!!!!!!!!!!!