Click here to Skip to main content
15,892,059 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have three module admin,staff,student.....

once staff register the account i want to accept or reject in admin module(manage staff Page) using gridview......please help me....
Posted
Comments
Magesh M N 31-Mar-15 3:02am    
What you have tried for this?.
Sinisa Hajnal 31-Mar-15 3:42am    
What have you tried?
thamil arasan 31-Mar-15 4:40am    
i want to learn code
Sinisa Hajnal 31-Mar-15 5:04am    
You don't learn to code by asking for finished code.
Here are some questions to enable you to pose your question better:
What are the modules? Tables from database? Files?
Learn how to access database, insert and update records...this is same in web and winforms. There are plenty of examples how to bind the datagrid. Find them. Learn from them. Then come back and ask questions when you get stuck with your own code.
thamil arasan 31-Mar-15 12:30pm    
thanks

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900