how to create user rights

Posted by Srinu123 under ASP.NET on 7/3/2010 | Views : 1685 | Status : [Member] | Replies : 1
Hi all
i have created user creation page in that page user details and rights

Name =textbox
address=textbox
rights
createuser =checkbox
deleteuser=checkbox
edituser=checkbox

button cancle

user creation complted now

this user is login into application he selected two rights (createuser//edituser)
how to retrive the rights from sql db
that rights only displayed in left side of user profile
sorry plz understand my language any one plz give the solution this is need for me

thanks
srinu




Responses

Posted by: Muhilan on: 7/5/2010 [Member] Starter

Up
0
Down
On_Page Load Event Check the rights , if the rights exists then visible the links(createuser and edituser) else set visible=false.

ex.

bool b1=getvalue for createuser button;

if(b1)
{
createuserbtn.visible=true;
}
else
{
createuserbtn.visible=false;
}

like that for every links

Srinu123, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response