Click here to Skip to main content
15,895,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello all
if i use validation in my input text to prevent an harmful code and i use "https"
what is the benefit of Server.HTMLEncode
Posted

1 solution

Refer this link

Server.HTMLEncode Method [msdn][^]

It states that:
Quote:
The HTMLEncode method applies HTML encoding to a specified string. This is useful as a quick method of encoding form data and other client request data before using it in your Web application. Encoding data converts potentially unsafe characters to their HTML-encoded equivalent.

Regards..:)
 
Share this answer
 
Comments
ahmed hussein khazal 12-Sep-13 6:19am    
how the unsafe characters come to my web application if i use validation input and use https
Thanks7872 12-Sep-13 6:22am    
Its very broad topic. Refer this link http://www.codeproject.com/Questions/642829/need-code-about-Sql-injection-and-XSS-vulnerabilit. See the answer i posted there.
ahmed hussein khazal 12-Sep-13 6:57am    
when i use https i will ensure that the data of my web application will still safe when it transfer in the network so the harmful data can not come when the data transfer
the second way to harmful come to my web application it by input fields
when i use validation input i will override the harmful data
this is right or not ?!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900