Click here to Skip to main content
15,885,278 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to add the role and location path to the web config to retrieve the value of a textbox based on user input?
ex: I have a textbox to add location path
I have a combobox (with items admin and user) to add roles.
ex: user input
location path = textbox
roles = combobox (items admin and user)
the save button,
when click the save button
the results go to the web config :
C#
<location path="Report/ManageReport.aspx">
    <system.web>
      <authorization>
        <allow roles="ADMIN" />
        <deny users="*" />
      </authorization>
    </system.web>
  </location>
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900