Registeration :
Store staff data along with
statusColumn
in your table ,
statuscolumn
may be 0's or 1's ,if its 0 means accept,if its 1 means Reject .Initially set 1 for all staff's
Admin Panel :
Use
Gridview
to show all registered Staff's Information along with button to update the
Statuscolumn
as 0 or 1 ,whatever it is while show your
Gridview
use
RowDatabound
event to show the current status of the Staff whether its active or Inactive
if(Status==0)
{
button.text="Accept";
}
else
{
button.text="Reject";
}
if admin Click
Accept
text button then update your
Status column as 1
if admin click
Reject
text button then update your
status column as 0<br />
That't it.