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 intrinsic objects in asp.net?
What are the disadvantages of asp.net?
Explain about the .NET framework?
What is a runtime version?
Explain the purpose of storyboard.targetproperty.
What is server side in asp.net?
Explain managed code an un-managed code.
What is the difference between user control an custom control?
What is asp according to you?
Explain how asp.net page works?
Which is the best institute to learn Microsoft Technologies and the faculty if you Know?
Explain how cookies work. Give an example of cookie abuse.
Can user control be stored in library?
Which is better viewstate or session?
How can you access the properties and controls of master pages from content pages?