I am devloping a web application where i am validating users against a set of users in the sql db table.I have a master page and couple of other pages.So when a user ‘A’ logsinto the application ,my application queries into the sql table an authenticates the user.
My question is that i have a column called role in my sql table.so when user is authenticated based on the role i want to display or not display a button control in my home page.All my logic lies in the code behind of the login page.
Can any one help me out ?
You should use the .Visible property of the button control. Set it equal to true if they should have access to it, otheriwse set it equal to false.