I am using commandname and commandargument to control sorting (field and direction). How secure is the viewstate from SQL injection.
I am using commandname and commandargument to control sorting (field and direction). How secure
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
If you are passing values from the ViewState into concatenated SQL, then yes. However, if you’re using Bind Parameters (you are, aren’t you?) then you don’t have to worry about it.
Bad:
Good: