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 can we create Tree control in asp.net?
How would you get asp.net running in apache web servers?
What are the Difference between asp.net and asp ?
What are the HTML server controls in ASP.NET?
Describe the method to create a permanent cookie?
What describes a query?
What is semantic gap?
What is the purpose of session management?
What is a viewbag?
What is the use of autowireup in asp.net?
Differentiate between structure and class.
Can you change a Master Page dynamically at runtime?
Explain one critical mapping?
Where do the cookie state and session state information be stored?
What is the difference between a multi-layer and multi-tier applications?