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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T16:19:48+00:00 2026-05-10T16:19:48+00:00

I want to recreate the the update panel postback without using an update panel

  • 0

I want to recreate the the update panel postback without using an update panel to do the postback. What is the generic method for doing this?

For example, on Stackoverflow, when you vote up or down on a question it does a postback to update the database and I would bet they didn’t use an update panel.

What do I have?

I have a table with table data. When I click on the td item as a whole column, I want to do an update to the database and also update a gridview on the page itself. The gridview shows all the currently clicked items in the table because it was updated via ‘our method’.

Looking for a good generic method I could use for a lot of async postbacks without update panel.

  • 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. 2026-05-10T16:19:48+00:00Added an answer on May 10, 2026 at 4:19 pm

    The way that Stack Overflow works differs in two important ways from that CodeProject article.

    • Stack Overflow is making its AJAX request against an ASP.NET MVC controller action, not a standalone ASPX page. You might consider this as the MVC analogue of an ASP.NET AJAX page method. In both cases, the ASPX method will lag behind in terms of performance.

    • Stack Overflow’s AJAX request returns a JSON serialized result, not arbitrary plaintext or HTML. This makes handling it on the client side more standardized and generally cleaner.

    For example: when I voted this question up an XmlHttpRequest request was made to /questions/171000/vote, with a ‘voteTypeId’ of 2 in the POST data.

    The controller that handled the request added my vote to a table somewhere and then responded with this JSON:

    {'Success':true,'NewScore':1,'Message':'','LastVoteTypeId':2} 

    Using that information, this JavaScript takes care of updating the client-side display:

    var voteResult = function(jClicked, postId, data) {   if (data.Success) {     jClicked.parent().find('span.vote-count-post').text(data.NewScore);     if (data.Message)       showFadingNotification(jClicked, data.Message);   }   else {     showNotification(jClicked, data.Message);     reset(jClicked, jClicked);      if (data.LastVoteTypeId) {       selectPreviousVote(jClicked, data.LastVoteTypeId);     }   } }; 

    If you’re using WebForms, the example of calling page methods that you found on my blog is definitely in the right ballpark.

    However, I would suggest that you consider a web service for any centralized functionality (like this voting example), instead of page methods. Page methods seem to be slightly easier to write, but they also have some reuse drawbacks and tend to provide an illusion of added security that isn’t really there.

    This is an example of doing the same thing you found, but with web services (the comments on this post actually led to the post you found):

    http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/

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

Sidebar

Ask A Question

Stats

  • Questions 213k
  • Answers 213k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer this? out=$(cmd) rv=$? if test $rv -eq 0; then echo… May 12, 2026 at 10:30 pm
  • Editorial Team
    Editorial Team added an answer basically to set any field position amoung the manager, you… May 12, 2026 at 10:30 pm
  • Editorial Team
    Editorial Team added an answer It is good that you ask this question, because it… May 12, 2026 at 10:30 pm

Related Questions

I am using the Yahoo DataTable for which the API is here . I
I'm engaged in writing a product using LinqToSql for data-access. While we're rapidly developing,
First, the problem: I have several free projects, and as any software they contains
I have a pair of SQL Servers at different webhosts, and I'm looking for

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.