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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:39:39+00:00 2026-06-08T19:39:39+00:00

I was confused by an answer on another post I made here: https://sharepoint.stackexchange.com/questions/40057/is-an-updatepanel-a-bad-decision/40412#40412 My

  • 0

I was confused by an answer on another post I made here:
https://sharepoint.stackexchange.com/questions/40057/is-an-updatepanel-a-bad-decision/40412#40412

My understanding is that an UpdatePanel handling a Button_Click is not doing anything different from a security standpoint than a normal postback. The UpdatePanel IS still doing a full postback, it’s just happening asynchronously inside the confines of the UpdatePanel.

Take this scenario:

I am handling an upvote click event. I can either submit a new vote with AJAX, or with a Button_Click in an UpdatePanel. (Taking for granted that voting should be asynchronous. Having a postback for each vote would be terrible IMO)

In order to avoid vote cheating, I’m tying a vote to both an item and a user, and so in submitting a vote I need to include these two things.

With AJAX, it seems as though both of these fields can easily be hacked, to the point that someone could get an array of user names and run a loop submitting hundreds of votes in a short time period.

With an UpdatePanel, I can at the very least pull the identity of the current user server side, and not expose any item creation methods to web services.

Is this not fundamentally more secure? Do I misunderstand how an UpdatePanel works?

  • 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-08T19:39:43+00:00Added an answer on June 8, 2026 at 7:39 pm

    An UpdatePanel is indeed the same as a postback from the security standpoint. It’s just a matter of how the output is partially rendered.

    Now, regarding your scenario:

    Doing a purely ajax approach wouldn’t jeopardize security in any way. Just because it’s javascript it doesn’t mean that you are forced to open up to cheating, by actually receiving the user as a parameter in your request. That’s what you have authentication, cookies, etc for. To identify the user from a request coming in, using Principals and Identities.

    To make it short, you can have a safe implementation both with an UpdatePanel and with AJAX.

    NOTE: AJAX doesn’t force you to expose webservices outside of your security implementation, the endpoint on the server could indeed just be an MVC Controller, an HttpHandler, etc.

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

Sidebar

Related Questions

I'm busy getting confused about non-deterministic destruction. In an answer to another question I
This answer had me slightly confused. What is a 'select to a temp table'
As demonstrated in this answer I recently posted, I seem to be confused about
Confused here... I have two dates which I NSLog to console and get: dates
Very confused here, trying out the yuicompressor on a simple javascript file. My js
I've read a few other questions that seem similar but I'm still very confused,
I've searched around other threads with similar questions, but I'm not finding the answer.
Is anyone familiar with os/161 and can answer a few questions for me? How
Here's a link i saw but still confused over the answers provided for them
According to another answer , an rvalue reference will not extend the lifetime of

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.