How do you find the balance between Javascript (jQuery) and code behind in ASP.NET.

Posted by PieterG on Stack Overflow See other posts from Stack Overflow or by PieterG
Published on 2010-06-03T21:09:28Z Indexed on 2010/06/03 21:14 UTC
Read the original article Hit count: 204

Filed under:
|
|
|

Stackoverflow members, How do you currently find the balance between javascript and code behind. I have recently come across some extremely bad (in my eyes) legacy code that lends itself to chaos (someHugeJavafile.js) which contains a lot of the logic used in many of the pages.

Let's say for example that you have a Form that you need to complete. 1. Personal Details 2. Address Information 3. Little bit more about yourself

You don't want to overload the person with all the fields at once, so you decide to split it up into steps.

  1. Do you create separate pages for Personal Details, Address Information and a Little bit more about yourself.
  2. Do you create controls for each and hide and show them on a postback or using some update panel?
  3. Do you use jQuery and do some checking to ensure that the person has completed the required fields for the step and show the new "section" by using .show()?

How do you usually find the balance?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about jQuery