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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T14:45:27+00:00 2026-05-23T14:45:27+00:00

Lets say I have a button (call it btnDeleteUser ) that calls an event

  • 0

Lets say I have a button (call it btnDeleteUser) that calls an event server-side to delete a user (lets call it DeleteUser()). Say I only set btnDeleteUser.Visible = true on this button if the user is an admin, and its false by default. My understanding is that the .Visible property keeps the button from being rendered to the user at all. Could a hacker still fire the DeleteUser() event, possibly by spoofing the POST data? Or does .NET catch that somehow?

I think the best practice here would be to check the user’s credentials again on DeleteUser() before doing anything, but I’m curious if this is even possible in the first place…

I’m using ASP.NET 4.0 Web Forms (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-05-23T14:45:28+00:00Added an answer on May 23, 2026 at 2:45 pm

    It’s possible to spoof it yes, but Event Validation (assuming you’re using WebForms rather than MVC) should catch it.

    However if you’re doing things client side, like adding options to a list and then selecting it, then Event Validation will error because the list doesn’t have its original contents, so people end up turning it off to make their lives easier.

    Even if you have left event validation turned on you should have a defence in depth strategy, and role check regardless.

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

Sidebar

Related Questions

For simplicity lets say I have two flex mxml pages. form.mxml button.mxml If the
Lets say I have several web sites on my web server, all as applications
Lets say I have a javascript function call moveItem which takes two parameters source
lets say I have an NSWindow Class, that has several events for mouse and
Here's the scenario I have a page lets say login.aspx having a button called
Lets say i have a a button somewhere in the code: JButton closeButton. I
For a simple example lets say I have a UITextView with a Button underneath
On Excel forms or vb: lets say i have frame1 with a button on
I know that ASP.NET controls such as the button have the postback event model.
I have initialized a variable called lets say a = 0; when the user

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.