hello...
in our website how we can do settting like some links should be visible only when "admin" user is logged in!
Thanx!
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Posted Oct 30, 2009, 9:34 AM EDT
1)autoformat-->where u can change the design of login control
2)Administer website
3)template
For our purpose select administer website--> and in it Select security where u can create new user roles and administer roles..
There u can set the access rights for each user...and u very play with it according to your purposes....
Hope this helps...Any doubts feel free to ask....
If Someway my answer helped u don't forget to mark it as correct answer....
Dipa AhujaRank #1,168 · 1.5K reputationPosted Oct 30, 2009, 9:55 AM EDT
n from that i set the updateproduct.aspx accessed only those who have the admin role.
bt on home page how to do the the admin page? i mean i want to show one link button "Admin" which should be visible only when the user from admin role is logged in.
and also at the time of creating user how to apply "user" role to all the simple users?
Posted Oct 30, 2009, 10:25 AM EDT
To view who as logged in select LOGIN VIEW option and drag it to the wbsite..Dragging Login status would also be useful...
Hope this helps..
If Someway my answer helped u don't forget to mark it as correct answer....
Dipa AhujaRank #1,168 · 1.5K reputationPosted Oct 31, 2009, 7:13 AM EDT
n createuserwizard's CreatedUser event i apply the "user" role by default to the new user
bt on the home page i have one link
asp:HyperLink ID="hpadmin" NavigateUrl="~/admin/updateproduct.aspx" Text="Administrator" runat="server"/>so i want this hyperlink should be displayed only when the user from "admin" role logged in n it should be hidden when user from "user" role logged in