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 are different transaction options?
You are using the try? catch block seen in the following code segment, but no exceptions are ever caught by the catch block. What is the problem? SqlConnection cn =new sqlConnection(strSQL); SqlDataSet ds; try { cn.open(); //perform the data processing steps ??.. } catch (OleDbException e) { ?.. } a) The exception class is wrong; it should be sqlErrors. b) The exception class is wrong; it should be sqlSyntaxExceptios. c) The exception class is wrong; it should be sqlExceptions. d) The exception class is wrong; it should be sqlExcptions.
2 Answers Microsoft, Syntax Softtech,
How Session outproc in Sqlserver stored?
what are the State management and Its Uses
What is operator overloading in dotnet
Differnce between Control an View State
is gateway for sms continue connected for sending sms.how?
what is dumpbin.exe?
What is dataset ?
18 Answers Infosys, Kuwait University,
What is dataset and uses of dataset ?
What are different ASP.NET Web Forms with the technology different from though ASP (1.0-3.0)?
What is the difference between application state and session state in asp net?