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
Hidden controls (Permissions)
Page 1 of 11 Replies - 1876 Views - Last Post: 08 January 2013 - 09:00 AM
Replies To: Hidden controls (Permissions)
#2
Re: Hidden controls (Permissions)
Posted 08 January 2013 - 09:00 AM
if you're passing those values to the view then you could just do a simple if/else check in the view to determine whether to display the button or not
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote




|