I am using Hiddenfield in my ASP.Net page and am storing some values in it. But the user can change its value through firebug via firebug in the client side and enter an invalid value in it. So when the user clicks the submit button in the web page, invalid data will be received on the server side and invalid data will be stored in my database. What can i do
Validate input on server side You should always do this, anytime, never trust users should do.
So, whatever method you have in your code, it is necessary to check that data before saving it to all the data it sends to DB.
Comments
Post a Comment