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
Can I recieve both html markup for page and code in the asp.net web page's source code portion in the web browser?
Explain the reason why the javascript validation not run on the asp.net button but run successfully on the html button?
What are all the various Estimation Techniques available ?
Define static function?
What is difference between session and cookie?
What does the hotspot class in .net do?
How do you declare static variable? What is its lifetime?
What is difference between inproc and outproc?
Write code to send e-mail from an asp.net application?
What is the difference between runtime version and version?
What are the options in ASP.NET to maintain state?
Explain the difference between webfarm and webgardens in .net?
What is rich control in asp.net?
Is asp.net different from asp? If yes, explain how?
Can any body provide me the sample web application in asp.net