Click here to Skip to main content
15,886,006 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: Managing Long Running Processes Pin
jkirkerx25-Sep-12 11:21
professionaljkirkerx25-Sep-12 11:21 
QuestionLoadWith is not allowed after freeze or attach to DataContext Pin
nitin_ion24-Sep-12 21:27
nitin_ion24-Sep-12 21:27 
AnswerRe: LoadWith is not allowed after freeze or attach to DataContext Pin
n.podbielski28-Sep-12 0:38
n.podbielski28-Sep-12 0:38 
Questioncheck box Pin
bilal khatri24-Sep-12 4:09
bilal khatri24-Sep-12 4:09 
AnswerRe: check box Pin
Mohibur Rashid24-Sep-12 16:11
professionalMohibur Rashid24-Sep-12 16:11 
AnswerRe: check box Pin
wikizhao25-Sep-12 0:00
wikizhao25-Sep-12 0:00 
AnswerRe: check box Pin
gopal pradhan8-Nov-12 23:23
gopal pradhan8-Nov-12 23:23 
QuestionMVC - How are you scripting..? Pin
Dylan Morley24-Sep-12 3:16
Dylan Morley24-Sep-12 3:16 
Hi,

A really well written article, which I recommend you look at if you haven't at is Journey through the Javascript MVC Jungle[^].

Here's my dilemma. I want all the goodness of controllers, I want strongly typed views and model binding - basically all the best bits of MVC. However, even a fairly simple page will usually require some client side script for showing\hiding elements, confirmation boxes & all that funky stuff that users expect for todays interactive web pages. You normally end up with 'page specific script' which will be a number of event handlers and bindings, with no real structure as such.

Backbone, Knockout and many of the other frameworks mentioned in the article I linked address this problem, they allow you to create client side models and bring structure and cohesion to your client script. However, the way they are designed almost relegates MVC to a simple 'web API' to handle RESTful requests and respond with some JSON. You seem to end up moving logic that I believe should be in the 'server side controller' into a 'script controller', which I'm not really happy with.

I want a structured script representation of my Model, that wires up all by event handlers for my View and keeps everything in a logical order. But I still want model binding, data annotations, validation and logic in my controller, everything that should be handled by MVC.Net. I want the best of both in other words Smile | :)

I've read quite a bit on this subject, so I know there are many different options available to me - that's the very point of the link. I'm just interested how others developing in MVC are addressing this problem?

Most of the applications I'm working on at the moment are Line Of Business, but they can still have some fairly complex client side functionality. I'm not using any framework at the moment, I'm just namespacing my script and wrapping up some jQuery (i.e. Javascript modular pattern) ... it works, just not sure if it's the best way to be doing things.

Any thoughts?

Cheers
AnswerRe: MVC - How are you scripting..? Pin
John-ph25-Sep-12 20:39
John-ph25-Sep-12 20:39 
GeneralRe: MVC - How are you scripting..? Pin
Dylan Morley26-Sep-12 3:08
Dylan Morley26-Sep-12 3:08 
GeneralRe: MVC - How are you scripting..? Pin
John-ph26-Sep-12 17:57
John-ph26-Sep-12 17:57 
QuestionHow to copy the content of textbox to the clipboard Pin
vinay_sinha23-Sep-12 21:25
vinay_sinha23-Sep-12 21:25 
QuestionCreating Textboxes Dynamically Pin
ASPnoob23-Sep-12 2:53
ASPnoob23-Sep-12 2:53 
AnswerRe: Creating Textboxes Dynamically Pin
Vani Kulkarni23-Sep-12 18:32
professionalVani Kulkarni23-Sep-12 18:32 
AnswerRe: Creating Textboxes Dynamically Pin
vinay_sinha23-Sep-12 20:59
vinay_sinha23-Sep-12 20:59 
AnswerRe: Creating Textboxes Dynamically Pin
ema2000_t24-Sep-12 11:55
ema2000_t24-Sep-12 11:55 
AnswerRe: Creating Textboxes Dynamically Pin
n.podbielski28-Sep-12 1:12
n.podbielski28-Sep-12 1:12 
AnswerRe: Creating Textboxes Dynamically Pin
RichardGrimmer28-Sep-12 4:11
RichardGrimmer28-Sep-12 4:11 
Questionasp.net web form or asp.net mvc ?? Pin
Mohamad Shahmardan22-Sep-12 13:04
Mohamad Shahmardan22-Sep-12 13:04 
AnswerRe: asp.net web form or asp.net mvc ?? Pin
Vani Kulkarni23-Sep-12 18:30
professionalVani Kulkarni23-Sep-12 18:30 
AnswerRe: asp.net web form or asp.net mvc ?? Pin
John-ph23-Sep-12 18:43
John-ph23-Sep-12 18:43 
GeneralRe: asp.net web form or asp.net mvc ?? Pin
Mohamad Shahmardan24-Sep-12 3:06
Mohamad Shahmardan24-Sep-12 3:06 
GeneralRe: asp.net web form or asp.net mvc ?? Pin
n.podbielski28-Sep-12 1:13
n.podbielski28-Sep-12 1:13 
Questionjquery ui autocomplete Pin
lokesh.developer21-Sep-12 18:19
lokesh.developer21-Sep-12 18:19 
AnswerRe: jquery ui autocomplete Pin
Sandeep Mewara21-Sep-12 19:34
mveSandeep Mewara21-Sep-12 19:34 

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.