About the Usage of htmlencode and urlencode ?

Answers were Sorted based on User's Feedback



About the Usage of htmlencode and urlencode ?..

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

About the Usage of htmlencode and urlencode ?..

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

Post New Answer

More ASP.NET Interview Questions

How can u handle Un Managed Code Exceptions in ASP.Net?

1 Answers   Lara Technology,


calling result set one procedure to anothar procedure in sql2000

0 Answers  


What is session state server?

0 Answers  


What are the different ways of processing data in ASP page in the server side (like Forms, QueryStrings etc)?

1 Answers  


what is the difference between assemblyinfo and webconfig files?

1 Answers  






In a Repeater control how one can provide an alternating color scheme ?

0 Answers   Siebel,


What are the memory-mapped files?

0 Answers  


How to configure a website without using IIS.

3 Answers   CGI,


What is session handling in a webfarm, how it can work with its limits?

0 Answers   Siebel,


Explain Optimization technique description?

0 Answers   Digital GlobalSoft,


What are different templates available in Repeater,DataList and Datagrid ?

1 Answers  


What is Difference between Callbacks and Postback in ASP.NET?

1 Answers   Patni,


Categories