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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T21:23:16+00:00 2026-05-15T21:23:16+00:00

I am making a site where users can reply to topics, open topics, etc.

  • 0

I am making a site where users can reply to topics, open topics, etc. and when the user sends a message, I don’t want to postback; it’s ugly.

I’m using generic handlers right now but I am having some problems with it. Like updating GridView using UpdatePanel when XMLHttpRequest’s onreadystate is changing.

I decided to use PageMethods but I also wanted to ask you.

Which is better, faster and more useful: PageMethods or Generic Handlers?

  • 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-15T21:23:17+00:00Added an answer on May 15, 2026 at 9:23 pm

    I don’t think there would be much difference between the speed of Page methods and HTTP Handlers. However if you’re worried about your application’s performance, you should benchmark each option and choose what’s best for you.

    To answer the question, which is better or more useful, basically within the ASP.NET context you have three options, each with their pros and cons:

    1. Page methods – all your code is contained in single Page, which is fine if the code is only used by that page. You should probably implement methods that return page-specific HTML snippets as Page methods. However if we are talking about reusable code, such as “Save Topic” or “Get Topics”, you might want to consider externalizing this code elsewhere. I guarantee that as your application grows, you’ll need those methods elsewhere in your application end as well.

    2. Generic HTTP handlers – are lightweight, and great for code you need to call often throughout your application. Most often generic handlers are implemented to serve content, and I don’t know what the best practice around this topic is, but to me POST ing to a generic handler to save data has a distinct smell. You’ll also find that for related functionality (Save, Get single, Get many, etc.) you’ll end up with a swarm of handlers, or a handler with a giant switch statement and a fuzzy contract based on query string and POST parameters. I wouldn’t recommend this option to implement extensive AJAX application. For small bits and pieces it might suit your needs.

    3. ASP.NET web services (or WCF) – The third option you did not mention in your questions are ASP.NET web services (.asmx). You can easily include them in your existing ASP.NET application without any additional framework dependencies. They offer a good balance between the options 1 and 2. On one hand you get reusability throughout your application, and even outside your application if you so choose, which Page methods cannot provide. On the other hand you can neatly bind together related functionality in meaningful ways, which tends to get messy with generic handlers. You can also interact with the services using SOAP XML, JSON or HTTP POST / Plaintext as needed.

    And the wildcard option here is: Use ASP.NET MVC and jQuery. If you’re looking to build a lean and mean web application and you generally find postbacks ugly, and you find stuff such as what exactly happens when the xmlhttprequest changes readystate interesting, it might provide you with a better experience overall. Maybe not for this project, but for the next one.

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

Sidebar

Related Questions

I have a flash site that users can view full Screen video. the trouble
I have a site where users can log in and check on outstanding support
I have a site where users can stream my music from a flash player
I have a members only area on my site where users can login and
I am making a site that publishes articles in issues each month. It is
I'm in the process of making my PHP site Unicode-aware. I'm wondering if anyone
I'm making modifications to a members-based site whose owner wants to be able to
I am making use of AJAX on my site and I would like to
I'm making an automated script to read a list from a site posting the
I'm making a simple navigation menu for a site. You create an ul with

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.