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
Define cookie.
Can you explain autopostback?
What is css and what is it used for?
What is the difference between custom web user control and a custom web server control?
Web API supports which protocol?
What is the equivalent of date() and time() in asp.net?
What does postback mean?
What is the difference between custom controls and user controls?
What is the difference between a multi-layer and multi-tier applications?
How many types of Cookies are available in ASP.NET?
What is a proxy in web service?
What is authentication in asp.net?
5. What three Specific Job Positions do you target from Swatz Oils GROUP U.K?
Who generates session id?
What is redirectpermanent in asp.net?