O
O
one__for__one2016-02-10 18:00:00
HTML
one__for__one, 2016-02-10 18:00:00

How to draw a custom menu from C#?

Hello.
I want to draw buttons from c# so that buttons are not displayed for a user with other rights.
As I understand it, you need to do:
1. Create a table in the database: 1 column - the role, 2 columns - the id of the buttons that the user with this role sees.
2. write a method call on html.
3. Write in the method:
a. see the role and what buttons are available
b. draw buttons.
Problem with how to draw buttons with an event handler?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
VanKrock, 2016-02-10
@VanKrock

check the rights on the server for each action, and when you draw, just set visible=none for elements inaccessible to the user

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question