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 7740085
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:41:04+00:00 2026-06-01T08:41:04+00:00

Basically, if I have a method (or several methods) that I want to expose

  • 0

Basically, if I have a method (or several methods) that I want to expose to multiple applications, what is the best way to get these to be callable via a jQuery Ajax request? I’d rather avoid having to copy and paste these methods into an ASHX or something somewhere in every project that requires the functionality.

For example, I have a method that looks up a city and state based on the postal code. I’d like to call this method from a shared DLL and not have to copy the method or add a method that simply wraps the call to that DLL to every project that requires the lookup functionality.

Should I have some kind of generic “utilities” web service? That seems like a hackish approach too since it’s not really a web service providing an API but just a group of commonly-used methods.

This is with ASP.NET WebForms, not MVC.

  • 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-06-01T08:41:05+00:00Added an answer on June 1, 2026 at 8:41 am

    Even with the web service you would have to duplicate the code to call said service from each application. I would think the same would be true with the MVC application approach but not sure about that.

    For me I would just used a shared dll (or service depending on requirements). Yes you would have to duplicate the code to call that dll from each app but I think it greatly simplifies what you’re trying to do. That’s how I tend to view common libraries anyway.

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

Sidebar

Related Questions

Basically I have created a Blackjack app that uses several methods that get called
I have a method CreateAccount(...) that I want to unit test. Basically it creates
I have two action methods that are conflicting. Basically, I want to be able
I have several methods that I need to wrap in new methods in basically
I have a method that basically returns the results of a mysql query. public
So I basically want to have a static method in my AR class to
My partner and I have a webcam site that basically runs the old-school method....Every
I have a Log class that has several static methods which help log information
I have a Preference class (module) that's used across several different apps. Basically it's
Suppose I have a method that combines several address fields like so: def address

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.