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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T23:37:47+00:00 2026-05-31T23:37:47+00:00

I am writing a web application on Asp.Net MVC 3. Assume that we have

  • 0

I am writing a web application on Asp.Net MVC 3.
Assume that we have some page and a @Html.Hidden field there with some information in it. Can I be sure that the user will never reach this information in hidden field?
Shortly speaking: is it safe to use hidden fields for information, that should not be revealed to user?

  • 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-31T23:37:48+00:00Added an answer on May 31, 2026 at 11:37 pm

    Can I be sure that the user will never reach this information in hidden field? Shortly speaking: is it safe to use hidden fields for information, that should not be revealed to user?

    Absolutely not. It will still be sent to the client – it just won’t be visible in the rendered HTML. If anyone uses “view source” they’ll still see the field.

    I suggest you try it to see for yourself – create the hidden field, then view the page in a browser and select “View Source”. It’s always good to have some idea of what the generated HTML looks like.

    If you must send the information to the client, encrypt and sign it first – that way the user won’t be able to view it in plain-text, and they won’t be able to forge a different value in the response, other than “previously seen valid values”.

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

Sidebar

Related Questions

I have an ASP.NET MVC application, with some RESTful services that I'm trying to
I'm writing an asp.net Web Application. I wrote a login page that authenticates a
I have an ASP.NET MVC web application that makes REST style web service calls
I have some processes that run without an HttpContext in an ASP.NET MVC web
I am writing an ASP.Net MVC 3 Web Application using Entity Framework 4.1. My
In a asp.net/c# web application I am writing a jQuery script. I have an
I am writing web application using ASP.NET MVC + NHibernate + Postres stack. I
I have a standard template ASP.NET MVC 2 Web application solution, an empty (meaning
I'm writing a ASP.NET web application. It dosen't use Web Forms or MVC. It
I'm writing an ASP.Net Web Application that can be deployed to Web Farms. I've

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.