Click here to Skip to main content
15,924,452 members

Welcome to the Lounge

   

For discussing anything related to a software developer's life but is not for programming questions. Got a programming question?

The Lounge is rated Safe For Work. If you're about to post something inappropriate for a shared office environment, then don't post it. No ads, no abuse, and no programming questions. Trolling, (political, climate, religious or whatever) will result in your account being removed.

 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Richard Deeming29-Oct-14 11:29
mveRichard Deeming29-Oct-14 11:29 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Andy Brummer29-Oct-14 15:42
sitebuilderAndy Brummer29-Oct-14 15:42 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Bob Nadler29-Oct-14 19:01
Bob Nadler29-Oct-14 19:01 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
User 1013254629-Oct-14 21:25
User 1013254629-Oct-14 21:25 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Marc Clifton30-Oct-14 2:41
mvaMarc Clifton30-Oct-14 2:41 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Fabio Franco30-Oct-14 0:47
professionalFabio Franco30-Oct-14 0:47 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Marc Clifton30-Oct-14 2:31
mvaMarc Clifton30-Oct-14 2:31 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Fabio Franco30-Oct-14 2:47
professionalFabio Franco30-Oct-14 2:47 
Marc Clifton wrote:
Somebody was definitely smoking something when they were playing with the opacity setting. Dead | X|


Yeah... developers... Laugh | :laugh:


Marc Clifton wrote:
I would like to do is work with Slim and SASS for lightweight HTML and CSS, but that doesn't seem possible with Razor.


I never worked with SASS, so I can't give you a definite answer for this, but whatever is supported on pure html, css applications, should be supported with Razor. I never found Razor to limit what you can already do purely in HTML or CSS. You can see Razor as a helper to build dynamic HTML and CSS with less effort.

Marc Clifton wrote:
I'm still evaluating whether the built in security stuff (roles, etc), "authorize" attribute, is implemented in a useable way.


Actually it is.Right out of the box you can use the AuthorizeAttribute to restrict access on entire views or actions by decorating them with no other programming required. AuthorizeAttribute will check if the user is logged in to decide wether to serve the Action/View. AllowAnonymous works the same way. For example, you can decorate the class the represents the controller with Authorize , which will make all of its actions require authentication. Later you can decorate one of the actions with Anonymous as an exception for the controller rule.

All of this makes a very safe way to restrict access, even to AJAX calls. Using roles will require a little bit of customization to match the roles of your application specifically. In any case, it hardly requires a lot of work and can save you a a lot of time implementing security.
To alcohol! The cause of, and solution to, all of life's problems - Homer Simpson
----
Our heads are round so our thoughts can change direction - Francis Picabia

GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Marc Clifton30-Oct-14 3:41
mvaMarc Clifton30-Oct-14 3:41 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Fabio Franco30-Oct-14 4:35
professionalFabio Franco30-Oct-14 4:35 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
AspDotNetDev1-Nov-14 19:08
protectorAspDotNetDev1-Nov-14 19:08 
GeneralTomorrow will be a sad day in the life of one dedicated server... Pin
Marc Clifton29-Oct-14 8:56
mvaMarc Clifton29-Oct-14 8:56 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
PhilLenoir29-Oct-14 8:58
professionalPhilLenoir29-Oct-14 8:58 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
OriginalGriff29-Oct-14 9:00
mveOriginalGriff29-Oct-14 9:00 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
Marc Clifton29-Oct-14 9:18
mvaMarc Clifton29-Oct-14 9:18 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
Andy Brummer29-Oct-14 9:09
sitebuilderAndy Brummer29-Oct-14 9:09 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
Marc Clifton29-Oct-14 9:17
mvaMarc Clifton29-Oct-14 9:17 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
OriginalGriff29-Oct-14 9:26
mveOriginalGriff29-Oct-14 9:26 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
Andy Brummer29-Oct-14 9:44
sitebuilderAndy Brummer29-Oct-14 9:44 
GeneralRe: Tomorrow will be a sad day in the life of one dedicated server... Pin
Slacker00729-Oct-14 9:29
professionalSlacker00729-Oct-14 9:29 
GeneralPassport to Bureaucracy, a game for all the family ... Pin
MidwestLimey29-Oct-14 7:42
professionalMidwestLimey29-Oct-14 7:42 
GeneralRe: Passport to Bureaucracy, a game for all the family ... Pin
Mark_Wallace29-Oct-14 7:52
Mark_Wallace29-Oct-14 7:52 
GeneralRe: Passport to Bureaucracy, a game for all the family ... Pin
  Forogar  29-Oct-14 8:01
professional  Forogar  29-Oct-14 8:01 
GeneralRe: Passport to Bureaucracy, a game for all the family ... Pin
MidwestLimey29-Oct-14 8:16
professionalMidwestLimey29-Oct-14 8:16 
GeneralRe: Passport to Bureaucracy, a game for all the family ... Pin
  Forogar  29-Oct-14 9:04
professional  Forogar  29-Oct-14 9:04 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.