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 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

Related Questions

I want to create a Java application bundle for Mac without using Mac. According
I want to recreate the stickiness and snapping of windows, like it is implemented
Want to know what the stackoverflow community feels about the various free and non-free
I want to assign the decimal variable "trans" to the double variable "this.Opacity". decimal
This is a continuation from When I update/insert a single row should it lock
I want to use a temp directory that will be unique to this build.
Want my FireFox at work to be in sync with my FireFox at my
I want to loop over the contents of a text file and do a
I want to create a client side mail creator web page. I know the
I want to reference a COM DLL in a .NET project, but I also

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.