Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

Hidden controls (Permissions)

$
0
0
Quite new to ASP MVC. I got three buttons on a page and three Booleans in my database

<input type="submit" value="Add File" />
<input type="submit" value="Add Software" />
<input type="submit" value="Add Hardware" />

Booleans

AddFileVisible
AddSoftwareVisible
AddHardwareVisible

How can I make these buttons only appear depending on if there set to true in the db?

using Entity Framework

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>