I’m using HiddenField in my Asp.net Page and store some value in it.
but user can changes it’s value via firefox Firebug in client side and enter an invalid value in it.
so when user presses the submit button in the web page,invalid data will recieve in server side and invalid data will store in my database.
what can I do?
I’m using HiddenField in my Asp.net Page and store some value in it. but
Share
Validate the input on the server side. You should ALWAYS be doing that anyway, never trust users.
So basically whatever method you have in your code behind that handles saving data to the db needs to check all the data its sending first.