Reputation: 1
Why I am getting cross-site scripting?
document.getElementById('<%= (HttpUtility.HtmlEncode(txt.sampleID)) %>').disabled = true
Upvotes: 0
Views: 368
Reputation: 244
I'm not sure why is it still showing as XSS vulnerability but you could also sanitize ClientID, like for example if its a number just cast it to an integer.
Upvotes: 1