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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T08:23:44+00:00 2026-06-10T08:23:44+00:00

i just started using data-* attributes to store custom attributes and values needed to

  • 0

i just started using data-* attributes to store custom attributes and values needed to View. for example .

<div id='someId' data-ItemValues='SomeValues'>
</div> 

based on the data-* i am doing some operations (CRUD) . what if user changed data-* attributes value in client side (ie from browser using firebug and some other developer tools) ?
i just want to know, is there any standards we need to follow or want to know how community handle this scenario.

Update :

i will validate in serverside also. but in some scenario. data is not stored in server. it will be in mark up. it will save only when user will hit save button.

i will pick the data, from javacript and use ajax to send values to the server. but my concern is that if user changed the values in data-* attribute, such that even server side validation will meet the rule to pass. then how do i prevent them ?

  • 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-10T08:23:46+00:00Added an answer on June 10, 2026 at 8:23 am

    The rule is the same it has always been.

    Never trust the client. Always verify and validate the values are what you expect, on the server side.

    This applies to values in hidden fields, data passed in through AJAX or anything that comes from a machine not in your control.

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

Sidebar

Related Questions

I have just started using the Data Access Application Block from microsoft. There are
I've started using the HTML5 data- attributes in my application, but when this is
I've just started using SQLite and I want to write all my application data
I have just started using core data. I want to setup a pre-populated db.
I just started using SimpleXML to get a feed and display data from that
I just started using Core Data with sql-lite so I'm a bit new. I
I just started using datatables (java script) for tabular data, due to js I
I have just started using WPF and am having trouble data binding from the
I just started using EF, and heres what I have: dataEntity = new ThisProject.Data.Entities();
I just started using Twitter Bootstrap http://twitter.github.com/bootstrap/scaffolding.html and I'm looking for the grey/blue navbar

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.