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

You create an assembly to access data in a relational database. This assembly will be used by several ASP.NET applications on your Web server. You need to ensure that all your applications can access the assembly. Which two actions should you take (Each Answer: presents part of the solution.)? (Choose two) A . Run the Assembly Registration tool (Regasm.exe). B . Run the String Name tool (Sn.exe). C . Run the Installer tool (Intallutil.exe). D . Run the Global Assembly Cache tool (Gacutil.exe).

6 Answers   CPCL, Syntax Softtech,


What is mvc in asp.net interview question? : Asp.Net MVC

1 Answers  


what is use of doctype tag in asp.net

1 Answers   TCS, Wipro,


Which validator control you use if you need to make sure the values in two different controls matched?

1 Answers  


How will u decide when to use caching and when to use viewstate?

5 Answers  


What is clickid?

1 Answers  


What is localhost in asp.net?

1 Answers  


What is the difference between repeater over datalist and datagrid ?

1 Answers  


What tag do you use to add a hyperlink column to the DataGrid?

2 Answers   Siebel Systems,


What is the difference between client-side and server-side validations in ASP.NET?

1 Answers   Sans Pareil IT Services,


What is a session in asp.net?

1 Answers  


when the threads are used in dot net.

2 Answers  


Categories