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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T20:11:58+00:00 2026-05-24T20:11:58+00:00

What is the best way to prevent a standard ASP.NET form from submitting certain

  • 0

What is the best way to prevent a standard ASP.NET form from submitting certain fields in the onsubmit event? Specifically, I have a registration page where I first validate the fields (RequiredFieldValidator) and then submit the form. However I would like to only submit the password hash from a hidden field, without the actual plain text password field.

I could override the default onsubmit function to nullify the fields before submitting, but then I won’t be able to validate the password. What is the best way to handle the situation?

I am writing in C# on ASP.NET 3.5.

Thank you.

  • 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-24T20:11:59+00:00Added an answer on May 24, 2026 at 8:11 pm

    You could keep the plain text inputs outside of the <form> or remove them with javascript right before submitting the form or just ignore those fields on the server when handling the post.

    As for hashing the password client-side, check out this answer…

    The only (currently practical) way to protect against login
    interception (packet sniffing) during login is by using a
    certificate-based encryption scheme (e.g. SSL) or a proven & tested
    challenge-response scheme (e.g. the Diffie-Hellman-based SRP). Any
    other method can be easily circumvented by an eavesdropping attacker.
    On that note: hashing the password client-side (e.g. with Javascript)
    is useless unless it is combined with one of the above – ie. either
    securing the line with strong encryption or using a tried-and-tested
    challenge-response mechanism (if you don’t know what that is, just
    know that it is one of the most difficult to prove, most difficult to
    design, and most difficult to implement concepts in digital security).
    Hashing the password is effective against password disclosure, but not
    against replay attacks, Man-In-The-Middle attacks / hijackings, or
    brute-force attacks (since we are handing the attacker both username,
    salt and hashed password).

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

Sidebar

Related Questions

hi sirs what's the best way to prevent google from showing of a folder
What is the best way to prevent host redirection? For example, say I have
What is the best way to prevent the browser from caching images in PHP?
What is the best way to close a browser window of an AJAX ASP.NET
What's the best way to prevent a user from making duplicate credit card transactions?
What's the best way to prevent javascript injections in a VB.NET Web Application? Is
What is the best way to prevent a Linux program/daemon from being executed more
So, what is the best way to prevent an XSRF attack for a GAE
In PHP, I know that using parameterized queries is the best way to prevent
The best way of describing this is I have a table of people 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.