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 is the difference between GridView and Repeater controls in ASP.NET?
Define static function?
What are ASHX files?
Tell me what is the request flow used for asp.net mvc framework? : asp.net mvc
Can the validation occurs in server-side or client-side? If the validation occurs why should we do?
What are session objects?
Describe paging in asp.net?
What is difference between Lambda Expression and LINQ in ASP.NET?
What is meant by ispostback in asp net?
Describe the method to create a permanent cookie?
What is the equivalent of date() and time() in asp.net?
Define the term Scavenging in Caching?
What is the difference between CC and BCC?
Can we use MSSql as backend in asp.net...if yes then How.?
What do you mean by View State and what is its role?