About the Usage of htmlencode and urlencode ?
Answers were Sorted based on User's Feedback
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 |
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 |
What is the Custom Error in ASP.NET?
2 Answers ABB, IBM, Infosys, Tech Mahindra,
Explain different types of validators in asp.net?
What are HTTP handlers in ASP.NET?
what is wpf and wcf in .net explain with an example?
What the use of Form Authentication and windows Authentication?
To bind columns manually which tags do you need to add within the asp:datagrid ?
What are the types of session in asp.net?
Explain what is the procedure to create the environment for asp.net? : asp.net mvc
What is indexing on asp.net?
How does a content page different from a master page?
How does session id work?
How to use one project files into another project?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)