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
How do I create a web form?
What is a 404 redirect?
What is the significance of ASP.NET routing?
What is virtual directory in asp.net?
Describe state management in asp.net?
What are the differnt types of handler in ASP.NET?
What is the difference between a page theme and a global theme?
What is the use of autowireup in asp.net?
What is the difference between trace and debug in asp.net?
What is the page life cycle in asp.net?
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
Is asp.net and .net are same or different?
What is the use of execute non query in asp.net?
What is smpte vc-1?
Can we add code files of different languages in app_code folder?