Click here to Skip to main content
15,914,416 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.

 
GeneralI think you have something in your mustache. Pin
Slacker00729-Oct-14 9:38
professionalSlacker00729-Oct-14 9:38 
GeneralRe: I think you have something in your mustache. Pin
Andy Brummer29-Oct-14 11:25
sitebuilderAndy Brummer29-Oct-14 11:25 
GeneralRe: I think you have something in your mustache. Pin
Roger Wright29-Oct-14 11:42
professionalRoger Wright29-Oct-14 11:42 
GeneralRe: I think you have something in your mustache. Pin
Mycroft Holmes29-Oct-14 13:04
professionalMycroft Holmes29-Oct-14 13:04 
GeneralRe: I think you have something in your mustache. Pin
Mark_Wallace29-Oct-14 13:50
Mark_Wallace29-Oct-14 13:50 
GeneralRe: I think you have something in your mustache. Pin
Dan Neely30-Oct-14 3:12
Dan Neely30-Oct-14 3:12 
GeneralRe: I think you have something in your mustache. Pin
Steve Echols30-Oct-14 5:44
Steve Echols30-Oct-14 5:44 
GeneralAwesomeness - continuing the asp.net / razor saga Pin
Marc Clifton29-Oct-14 9:13
mvaMarc Clifton29-Oct-14 9:13 
Continuing the tale of my diving into ASP.NET Razor for this Department of Public Works project...

jQuery is awesome

Mike Brind[^] is awesome. His articles on Razor and inline grid editor, even though they are for MVC 3, were invaluable. Got a full inline editing WebGrid up and running with add and delete row capability, all using jQuery's post and ajax functions, and using MVC 4. (I hope MVC 5 doesn't have such annoying breaking changes.)

Speaking of which AJAX is cool. I come from a background of maintaining an older Ruby on Rails app where everything requires a page refresh. Yuck. It is really really cool to be doing posts/gets to the server without having to reload the page.

C# / Razor is great. Ah, what a relief not to be working in RoR and using some "real" tools.

I also signed up for a really cheap web hosting service, we'll see how it goes before I give it a thumbs up/down indicator.

Also, after reading about how AngularJS 2.0 is a complete rewrite with no migration path from version 1.3, I've decided not to use it. For what I need, it looks like I might use a wee bit of knockout, but we'll see -- it may be that jQuery can handle all the functionality that I require.

One thing that's slightly annoying is that the view engine is so rigid. I really did love working with Slim/SASS in RoR, and it's unfortunate that the rendering engine can't be easily replaced.

I also find it interesting how easy it is to absolutely ignore the whole "model" part of MVC. Mike's examples use code embedded in the cshtml which as a certain convenience but which I don't like. That means then, if I put the C# code into the controller, I have to make the data available either through a ViewBag (which is where my learning curve is now) or a model (which I'll be migrating the code to next to learn the ins & outs of that.

And while Razor is great and the Html control wrappers are cool, it's really pathetic how to do anything user-friendly, you're pretty much coding in raw HTML.

Oh, and I hate style sheets. I want an editor that, when I mouse over a tag in the cshtml, it tells me what all the styles are that are being applied and allows me to click on the style so I can edit it in the css file. I thought I saw something like that somewhere once.

But I'm quite happy. Two days of concentrated effort have resulted in a grid that with a little polish will become a reusable mainstay component of this project. Jig | [Dance]

Marc

GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Judah Gabriel Himango29-Oct-14 9:24
sponsorJudah Gabriel Himango29-Oct-14 9:24 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Richard Deeming29-Oct-14 10:48
mveRichard Deeming29-Oct-14 10:48 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Marc Clifton29-Oct-14 11:05
mvaMarc Clifton29-Oct-14 11:05 
GeneralRe: Awesomeness - continuing the asp.net / razor saga Pin
Andy Brummer29-Oct-14 11:22
sitebuilderAndy Brummer29-Oct-14 11:22 
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 
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 

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.