Knowledge Base Category: Development

How to encode html to replace special characters

A simple function that will replace all your html tags into character code great for storing HTML in XML tags:  

VB Code

Public Function encoder(htmlcode As String) As String 
Dim writer As New IO.StringWriter 
Server.HtmlEncode(htmlcode, writer) 
Dim result As String = writer.ToString 
Return result 
End Function

C# Code

Read more

How to clear a form

To clear a web form full of textboxes and form controls just enclose all the objects in a Panel control then on your code behind use the following line


Read more

Warning: Use of undefined constant XML - assumed 'XML' (this will throw an Error in a future version of PHP) in /homepages/35/d428352912/htdocs/WilliamMendoza/wp-content/plugins/wp-syntaxhighlighter/wp-syntaxhighlighter.php on line 1048