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 are user controls and custom controls ?

1 Answers  


Where is the session stored?

0 Answers  


when the user control event occur in ASp page life cycle?

3 Answers   Microsoft,


What is connection pooling and how to enable and disable connection pooling?

0 Answers  


Demonstrate Render and PreRender?

0 Answers   QuestPond,


How do you access individual items of an Master Page

5 Answers   TCS,


Where the viewstate is stored after the page postback?

0 Answers  


What is Http handler?

5 Answers   Accenture,


What is the need of client side and server side validation ?

1 Answers   Keane India Ltd,


Explain About WebService

0 Answers   BirlaSoft,


What is the use of The Page.Master Property?

1 Answers  


About DataAdapters ?

8 Answers   Accenture,


Categories