Why Associative Array Creation Has "=>" And Numerical Array Not ?
uniqueideaman - May 21 2017 04:25 AM
How create Login System Using Hardware ID IN .NET C#?
rshirsagar55 - May 15 2017 04:02 AM
How Come Variable Not Assigned And Php Knows Where To Look For Value ?
uniqueideaman - May 06 2017 04:21 AM
Magic Constants Case Sensitive or case In-sensitive ?
uniqueideaman - Apr 27 2017 05:58 AM
Recent Blog Entries
Recent Status Updates
- Managed C++
- Visual Basic 4 / 5 / 6
- linked list
- hello world
Posted 19 January 2015 - 01:49 AM
I'm trying to build a website using ASP.NET MVC 5. I create models using Entity Framework and Visual Studio generates controllers and views automatically. That does most of my job. But I need one more thing.
In default views, there is Create New/Update/Delete links visible to everyone. I want my program to show those links only to registered users. I want unregistered users to see items only, not change them. How can I achieve that?
Posted 20 January 2015 - 02:58 AM Best Answer
You'll have to modify it yourself.
Disable them on the page load event, based on a condition of registered/unregistered user.