Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7593573
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:12:14+00:00 2026-05-30T21:12:14+00:00

I work in a lot of ASP.NET webforms projects. Since im not a big

  • 0

I work in a lot of ASP.NET webforms projects. Since im not a big fan of postbacks, i tend to write a lot of jquery ajax calls to handle the cilent -> server calls.

But keeping most of the logic in script tags / javascript files usually gets messy pretty fast, even though im trying to use a lot of functions and also simulating classes. I should add that 99% of the code is jquery, not “pure” javascript.

So i would like to know how you guys deal with this issue. I cant be the only one 🙂 Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T21:12:15+00:00Added an answer on May 30, 2026 at 9:12 pm

    I really like the “unobtrusive javascript” approach, where you load pretty much all your static javascript/jQuery code in a bundled, minified, cached javascript file, and then you use class and “data-” annotations on your HTML elements to flag them for certain actions. The javascript is written to scan your DOM for these flags and set up its logical behavior accordingly.

    This approach helps to force you to organize your javascript into logical modules, which tends to help reduce repetitive code. It separates the javascript from the HTML.

    The only thing to be careful of is that dynamically-loaded content also needs to be scanned, so any time you add AJAX-provided content to the DOM, be sure you invoke your scanning method on the added elements.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I work on a big asp.net entity framework web application with a lot of
I have an MVC app that does a lot of work with jQuery ajax
I've been using ASP.NET MVC for personal projects since before it hit RTM. I
Since asp.net mvc did away with many controls that were in webforms, does this
I used to work a lot with classic asp. I'm currently trying the ASP.NET
I cant' seem to work uploadify on ASP.NET MVC3, I searched a lot and
I have tried a lot of solutions but it did not work for me
I do a lot of ASP.NET MVC 2 development, but I'm tackling a small
we are making an web application using some big asp.net web toolkit. At the
At my work we have an existing ASP.NET web application and are duplicating some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.