@moaa
i got your point
you need to make some changes first of all use checkbox list for your roles and on the coding side make it sure that your selected role is being stored in the database. How lets see:
-
*place checkboxlist from tool box to your aspx page and enter your roles in it like this
-
<asp:CheckBoxList ID="CheckBoxList1" runat="server" RepeatDirection="Horizontal">
-
<asp:ListItem>Administrator</asp:ListItem>
-
<asp:ListItem>Member</asp:ListItem>
-
</asp:CheckBoxList>
-
-
*now in your coding side enter the selected value to the database through your query like
-
-
insert into "your database name" values ("your values" CheckBoxList1.selecteditem.text "this will insert the selected value in the database")
-
-
-
one more thing that you will have to check that weather the user comming on some page is authorized or not for that you will need authentication. You can do it by using sessions
when some user login check that weather its Admin or member by the value stored in database under the column role.
next is you need to store that role in a session and match it on every session for authentication.
i think thats what you want
maliksleo