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
if i wanna deploy my asp.net project to the production server and situation is that i m still not compiled my project i have as-is on my development side now on production server we dont have a visual studio now what kind of settings i need to be to do in webconfig /machine.config file to deploy my project and in iis too....
Explain what is an abstract class?
When we use cookie less session? Explain its working?
Which is faster viewdata or viewbag?
What is csrf attack in asp.net?
Explain an object, class and method.
How do you store a value in viewstate and retrieve them?
Explain diff. Betn dataset and recordset?
What is asp.net response object?
How is the asp.net mvc architecture different from others? : asp.net mvc
How can we inherit a static member?
List the major built-in objects in asp.net?
What is the use of view state?
What is cookies cache and session?
What is the advantage of mvc over asp.net? : Asp.Net MVC