A Validator Example
Now it's time to apply what you've learned so far. This example concentrates on using validators under various conditions. In fact, we'll use all four of the common validators described in the previous section. Figure 15.2 shows the layout for a web page. f USUS poukk ji vjijr fee Use f-tfl bi44 fr-tiMc ibj-rsf Ttil Yc-UflSUtlfiMbiil JUjililtga V t-jr .CWtcfi fl aa-J J j'-'.-u jiiaji .ron'ji j vjiiji fef iLc ittofuLapti field briber Lbifcc Tht _ flta iir iK ri iiVrr nw 1pre Ar Kvi far ins ' r-u...
Understanding Data Manipulation
Before you can manipulate application data, you need a recordset and a connection to the database. Developers use different techniques for gaining access to the data they require but, in most cases, you'll find that creating a global connection and recordset is the easiest method of performing this task. In addition, this technique generally produces the most efficient code. The following code shows what you'll need to add to the MainForm constructor to create the global database and print...
Dissecting the SOAP Message
You can divide SOAP messages into two basic categories requests and responses. The client sends a request to the server. If the server can fulfill the request, then it sends a data message back to the client. Otherwise, the server sends an error message indicating why it couldn't send a response back to the client. In most cases, the problem is one of security, access, equipment failure, or an inability to find the requested object or data. SOAP messages don't exist within a vacuum. If you send...
Understanding Critical Sections
A critical section is a piece of code or a variable that application threads can only access one thread at one time. If two applications require access to the same critical section, the first to make the request will obtain access. The second application will wait until the first application completes its task. In short, critical sections create bottlenecks in your code and can affect performance if you're not careful. Some forms of critical section ensure that the thread completes code...
Overview Djt
Components and controls form the building blocks of most modern applications. In an effort to reuse as much code as possible, developers create components or controls that can fulfill more than one need. For example, even though the function of each pushbutton on a form performs a different task, the underlying code required to create the pushbutton doesn't vary. Consequently, even though developers once had to code the individual pushbuttons at one time, they don't any longer because the code...
Accelerators and Menus
Menus come in a variety of shapes and sizes. All SDI and MDI applications require a main menu. This menu normally contains a File entry, as well as some form of Help. However, Visual Studio .NET provides you with a clean slate when you create a menu, so the contents are completely up to you. Following the pattern used by existing applications is good practice because using a standard menu template makes it easier for others to learn your application. Another typical menu type is the context...
Compiler
You won't currently find compiler attributes that control every aspect of compiler behavior. However, you'll find attributes that provide access to the functionality of .NET and reduce the complexity of changing some features. Unfortunately, this attribute category only works in a managed code environment. C does provide a managed code environment by default, but many developers will also use C to work with unmanaged code in a mixed language environment. In short, the compiler attributes only...
Error Handling
Most applications today contain some form of error handling. Unfortunately, the level and quality of error handling varies greatly. Some applications provide so much error handling that the application constantly raises alarms, even if the user provides the correct input. Other applications provide error handling that only a developer could love the messages are replete with jargon and the data is useful only if you designed the application. Still other applications provide one-size-fits-all...
Using the Antechinus C Editor
Many developers have expressed dissatisfaction with the editor provided with Visual Studio .NET for C development, which isn't a surprise for anyone who's developed applications for long. The editor, along with other tools such as third-party libraries, represents the developer's custom tool for creating code. Since each one of us is different, it's not surprising that a one-size-fits-all approach to the editor doesn't work. More than a few developers are also looking for alternatives to the...
ADSI Viewer
The Active Directory Services Interface ADSI Viewer enables you to see the schema for Active Directory. The schema controls the structure of the database. Knowing the schema helps you to work with Active Directory, change its contents, and even add new schema elements. In order to control the kinds of data stored for the applications you create, you must know the Active Directory schema. Otherwise, you could damage the database given sufficient rights or, at least, prevent your application from...


