About the Usage of htmlencode and urlencode ?
Answer Posted / kumar
HTMLEncode: converts the data to valid HTML format using
HTML escape sequences.
eg: If you want to print "<b>hi</b>" on the screen, by
default <b> & </b> will be treated as HTML tags for bolding
the content. But HTMLEncode will use the escape sequences
and print <b> instead of treating that as a HTML tag.
UTLEncode: converts the string to valid URL format using
URL escape sequences for example %20 will be replaces if
you have a space in the data and
| Is This Answer Correct ? | 9 Yes | 3 No |
Post New Answer View All Answers
what are the security certificates used in webservices?
What are web server controls in asp.net?
Explain the main differences between asp and asp.net?
How does a content page differ from a master page?
How to disable cut, copy and paste in TextBox using jQuery in asp.net?
What is latest version of asp.net mvc? : Asp.Net MVC
What is the difference between localization and globalization?
What is in a session cookie?
When should I use server transfer and response redirect?
How is mvc different from asp.net? : Asp.Net MVC
What is viewstate information stored?
What are validators and list some validators of asp.net?
Why is global asax is used?
Can you explain why it is useful to use mvc instead of webforms? : asp.net mvc
Explain about Multi-Language integration?