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

  • SEARCH
  • Home
  • 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 6223323
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:28:08+00:00 2026-05-24T08:28:08+00:00

I have inherited a large existing website to maintain. Previous developers have taken an

  • 0

I have inherited a large existing website to maintain. Previous developers have taken an erratic approach to project structure, and so one of the things I have been spending time working on is refactoring everything to make it more maintainable – for instance, gathering various copy-pasted blocks of html and code into usercontrols, setting everything up to derive from a master page, and generally spinning stuff off to live in libraries, rather than having functionality duplicated all over the place.

That was with the server side code. I now turn my focus to the client side functionality. The javascript at the moment is pretty bad. It suffers from a lot of the problems of the serverside code – there is a lot of duplicated functionality, unused functions, buggy functions, and so on, so I want to redo a lot of it. All the javascript code is stored in separate .js files. Often, it seems to duplicate functionality that could come from using asp.net controls instead, like the various validators.

I’ve not worked much with web techonologies before, but my instincts tell me that if I am going to be working with asp.net, I should be building my code with the tools provided by asp.net as much as possible. For instance, using stuff like RegisterClientScriptBlock to structure my code.

I previously asked a question related to this subject, but the responses I got were more about structuring javascript than about structuring an asp.net website.

What is the best, easiest to develop and most maintainable way to use javascript with an asp.net website?

  • 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-24T08:28:11+00:00Added an answer on May 24, 2026 at 8:28 am

    RegisterClientScriptBlock is one the things you start trying in the first place and regret it soon. Javascript does not belong onto the server side. Totally not.

    You really should use Separate Javascript files to wrap each control using the way microsoft creates their client side stuff. The problem is, even MSDN refers a lot to server-side code generation.

    A good introduction about client side asp.net development can be found here: http://dotnetslackers.com/articles/ajax/ASPNETAJAXControlDevelopment.aspx

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

Sidebar

Related Questions

I have inherited a existing website with a large codebase. To handle ajax requests,
I have recently inherited a large project using an sqlite3 database and currently I
I have recently inherited a large web project. Before taking this on, I had
I have a reasonably large project at work that I've inherited. It's an ASP.NET
I have recently inherited a large website. I have been checking it for security
I have inherited a project that has a large number of source files. I
I have inherited a large and complex C# windows service project that crashes every
I have inherited a large Django application and it features this idiom in the
I have inherited a Drupal 6 site to maintain. I am new to Drupal
I have inherited work from a previous employee. The issue I'm having is a

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.