About the Usage of htmlencode and urlencode ?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / radha
Use the Htmlencode method to encode input parameters when
generating display.
Use the urlencode method to encode the url's recieved as
input parameters
Is This Answer Correct ? | 7 Yes | 4 No |
How can u handle Un Managed Code Exceptions in ASP.Net?
calling result set one procedure to anothar procedure in sql2000
What is session state server?
What are the different ways of processing data in ASP page in the server side (like Forms, QueryStrings etc)?
what is the difference between assemblyinfo and webconfig files?
In a Repeater control how one can provide an alternating color scheme ?
What are the memory-mapped files?
How to configure a website without using IIS.
What is session handling in a webfarm, how it can work with its limits?
Explain Optimization technique description?
What are different templates available in Repeater,DataList and Datagrid ?
What is Difference between Callbacks and Postback in ASP.NET?