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

What would be salary for 6+ years of experience in ASP.NET in different metro city in india?

4 Answers  


Types of objects in ASP ?

2 Answers   Microsoft,


Which two properties are there on every validation control?

2 Answers  


How can you debug an ASP page, without touching the code?

1 Answers   Prodigy Technologies,


What are the data controls available in asp.net?

0 Answers  


Is asp.net 64-bit enabled? How?

0 Answers  


What language does asp.net use?

0 Answers  


How many classes can a single .NET DLL contain?

6 Answers   SoftSol,


what is advantage of developing in asp.net.why the same can't be developed in Java or other web developemnt tool.what are advantages of developers.

4 Answers   IBM,


Can the dictionary object be created in client?s scope ?

0 Answers   Satyam,


how to convert varchar into datatype int............. in ASP

1 Answers  


how can we maintain security in soted procedure?

1 Answers  


Categories