September 21, 2005

Send Email in C# Code

In order to send email in C# code, do the following: // create mail message objectMailMessage mail = new MailMessage();mail.From = “”; // put the from address heremail.To = “”; // put to address heremail.Subject = “”; // put subject here mail.Body = “”; // put body of email hereSmtpMail.SmtpServer

Improve Performance by Reducing Column Size

During design time, you generally allocate some space to the columns by default. When it comes to tweaking performance, you may try to go back to the design and reduce column size in order to save memory space. This method is just not possible in most tables that contain data.

Using a Function Call as an Lvalue

An Lvalue is an expression that can appear on the left-hand side of an equals sign. Likewise, an Rvalue expression appears on the right-hand side of the equals sign. Therefore the assignment statement takes the following form: Lvalue = Rvalue The most common Lvalue expression is a variable name as

Using Java to Handle Custom WSDL Data Types

he onslaught of Web services messaging and XML-based data transfer has led to a need to express these message exchanges in some structured way. The Web services Description Language (WSDL) deals with this need by defining an XML grammar for exposing services as sets of endpoints for exchanging related messages.

View the Bytecode Contained in a Java Class

If you look in the bin directory of a regular Java2 SDK installation, you’ll find a ‘javap’ application (javap.exe), which you can use as a disassembler by adding the -c command-line option. This allows you to view the bytecode inside a Java class. A Java class consists of assembly-code-like instructions