devxlogo

Tip Bank

Read the Entire Text Element

SAXParser’s DefaultHandler provides a callback for public void characters(public char[] ch, int start, int length, etc.) and throws a SAXException for reading element text contents. You can read the char

Testing with an Application Verifier

Application Verifier is a tool for testing user-mode applications for compatibility with MS Windows XP. It comes in handy when you’re troubleshooting issues like common programming mistakes related to memory

Masked Edit Control

To include characters in your mask that are also part of the set of mask syntax characters, escape them by using the backslash () character in front of the character

Use Reflection to Find Dynamic Class Information

Use this code to find information?such as the method name or the parameters?of a dynamic class: import java.lang.reflect.*;public class DynMethodNames{ public static void main(String a[]) { try{ //passing class name

Using StringBuilder in .NET

StringBuilder has an Append method that returns a reference to itself. This is useful for when you want to append several items in one go. The following code is an

Display Alert Messages on Separate Lines

Everybody knows that the alert() function in JavaScript is used to display messages in a dialog box. For example, the following code: alert(‘Hello Prakash’); will pop up with this message:

Post to Another .aspx Page

ASP.NET Web Forms post back to themselves?even if you add an explicit action attribute in the tag, ASP.NET overrides that action and posts the form to the original filename. You