Reputation: 2187
I have a textbox and i want the user to be able to submit a youtube embed code. Is this possible without setting 'ValidateRequest' to false?
Upvotes: 1
Views: 1155
Reputation: 46977
Html encode the text and put it in a hidden input before submit, and then decode it on the server after submit.
Upvotes: 1
Reputation: 19228
No, you must turn it False to allow users to enter youtube embed code. you just have to encode your code to prevent cross site scripting.
Upvotes: 2