Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want that SuperAdmin can add any number of user while admin can do it once . So what condition i have to put here . I have Session["AdminLevelId"] which identifies that its a superuser or admin and for adding user i have a add button which call the add user method . So what logic i have to put here .
Posted

1 solution

Hi,

check session variable in add button .like...

C#
  if(Session["AdminLevelId"].tostring().StartsWith("Admin"))
{
   //display user friendly msgs to admin
}
else
{
  //call add method
}


If you let admin can add only one user in day or ...

clarify your question and just place what you tried.

It'll help to solve your problem

All the Best
 
Share this answer
 
Comments
Vimalrashamra 29-Sep-11 6:05am    
I want that user can add customer only once . Means one user per amdin .
Muralikrishna8811 29-Sep-11 6:13am    
then maintain one column for that feature.
If column has true value then don't provide add feature otherwise provide feature and change that column to true.

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