RE: Server-side data to JavaScript

2013-07-10 Thread Nathan Chere
I just use something like this at the top of my view when I need to expose data to an external Javascript and don't want redundant server calls after page load: @model Example.Domain.WhateverViewmodel var viewModel = @Html.Raw(Json.Encode(Model)); From: ozdotnet-boun...@ozdotnet.com [mail

Re: Server-side data to JavaScript

2013-07-10 Thread Greg Keogh
Guys, even MORE frameworks! After following the links I decided to inject the JavaScript values into the page on PreRender. I just can't handle learning anymore frameworks. I'm currently inside Kentico (to make things much worse) and I'm still trying figure out which of the ~320 jQuery properties a

Re: the Open Source community for .NET developers: the value of joining and developing OS VS. for-proffit development

2013-07-10 Thread David Connors
On Thu, Jul 11, 2013 at 2:27 PM, Mark Hurd wrote: > BTW You might want to choose another name: Project Jenks does have a > number of hits https://www.google.com.au/search?q=Project+Jenks > Indeed. http://www.urbandictionary.com/define.php?term=jenks

RE: the Open Source community for .NET developers: the value of joining and developing OS VS. for-proffit development

2013-07-10 Thread Katherine Moss
Oh darn. Thanks. I'll have to refine that a little bit. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Mark Hurd Sent: Thursday, July 11, 2013 12:27 AM To: ozDotNet Subject: Re: the Open Source community for .NET developers:

Re: the Open Source community for .NET developers: the value of joining and developing OS VS. for-proffit development

2013-07-10 Thread Mark Hurd
BTW You might want to choose another name: Project Jenks does have a number of hits https://www.google.com.au/search?q=Project+Jenks -- Regards, Mark Hurd, B.Sc.(Ma.)(Hons.) On 10 July 2013 22:38, Katherine Moss wrote: > I'll have to look into that if I find it fits my needs, though I think that

Re: Server-side data to JavaScript

2013-07-10 Thread Stephen Price
Hey Greg, In my current app we would call an MVC controller and return a jsonresult. Call it using ajax. Webapi or render into the page on its initial load as you suggested would also be good and removes the extra call. On Jul 11, 2013 8:57 AM, "Greg Keogh" wrote: > Folks, on Tuesday I managed t

Re: Still trying to fix authentication on an ASP.net application: some accounts work and others don't

2013-07-10 Thread Mark Hurd
Here's some DotLisp methods to extract locked-out details: ; This retrieves the list of users currently locked-out. (def (locked-out) (sql"select username from aspnet_users u join aspnet_membership m on u.userid=m.userid where islockedout<>0" :connect *default-connect-string :returns 'col))

RE: Still trying to fix authentication on an ASP.net application: some accounts work and others don't

2013-07-10 Thread Katherine Moss
Thanks. I'm also checking all of the stored procedures; I think there is one for at least every action on the site (there are 697 of them). I'll go to the forums if I cannot find what I'm looking for, though I know that this is very easy. And I'm curious, if you don't use ASP.net membership b

Re: Server-side data to JavaScript

2013-07-10 Thread Heinrich Breedt
+ durandal + breeze On Thu, Jul 11, 2013 at 11:34 AM, David Smith wrote: > jQuery, WebAPI and KnockoutJS > > ** ** > > ** ** > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto: > ozdotnet-boun...@ozdotnet.com] *On Behalf Of *Shane Nall > *Sent:* Thursday, 11 July 2013 1:31 p.m. >

Re: Server-side data to JavaScript

2013-07-10 Thread Michael Ridland
If the data doesn't change then js on the page is a better option because you don't have to make another call with latency. On Thu, Jul 11, 2013 at 11:34 AM, David Smith wrote: > jQuery, WebAPI and KnockoutJS > > ** ** > > ** ** > > ** ** > > *From:* ozdotnet-boun...@ozdotnet.com [mailto:

RE: Server-side data to JavaScript

2013-07-10 Thread David Smith
jQuery, WebAPI and KnockoutJS From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of Shane Nall Sent: Thursday, 11 July 2013 1:31 p.m. To: ozDotNet Subject: Re: Server-side data to JavaScript Hi Greg, WebAPI and Handlebars. Cheers, Shane On 11/07/2013, a

Re: Server-side data to JavaScript

2013-07-10 Thread Shane Nall
Hi Greg, WebAPI and Handlebars. Cheers, Shane On 11/07/2013, at 10:57 AM, Greg Keogh wrote: > Folks, on Tuesday I managed to use jQuery 1.10 in a static html page to > simulate an interactive product picker. As you fiddled controls the price > would adjust accordingly. My price calcul

Server-side data to JavaScript

2013-07-10 Thread Greg Keogh
Folks, on Tuesday I managed to use jQuery 1.10 in a static html page to simulate an interactive product picker. As you fiddled controls the price would adjust accordingly. My price calculation data was just hard-coded into the page, so when this becomes part of the real ASP.NET app it will have to

RE: Still trying to fix authentication on an ASP.net application: some accounts work and others don't

2013-07-10 Thread GregAtGregLowDotCom
Hi Katherine, I'll have to let someone else that uses that membership provider answer that one. I took one look at it when it was released and decided it wasn't for me. I felt like I was in a parallel universe. Everyone in the room was talking about how fast it was to build and I was looking at

RE: the Open Source community for .NET developers: the value of joining and developing OS VS. for-proffit development

2013-07-10 Thread Katherine Moss
I'll have to look into that if I find it fits my needs, though I think that the Jenks Project needs to be open source if my plans for it are going to work out the way I'd like. -Original Message- From: ozdotnet-boun...@ozdotnet.com [mailto:ozdotnet-boun...@ozdotnet.com] On Behalf Of M

RE: Still trying to fix authentication on an ASP.net application: some accounts work and others don't

2013-07-10 Thread Katherine Moss
That's the funny thing; when I try and retrieve the passwords for either of these two accounts, instead of having email directed to the local server (I don't have SmarterMail configured yet), I get the "we can't locate your account" message from Sueetie, then when I go to retrieve the user name