· Figure 2.5
Output of Listing 2.1.5 when viewed through a browser.If you've worked with classic ASP, you are likely familiar with the concept of session-level variables. These variables are defined on a per-user basis and last for the duration of the user's visit to the site. ...
· Figure 2.4
Output of Listing 2.1.4 when viewed through a browser.Adding Elements to a Queue
In Listing 2.1.4, we begin by creating an instance of the Queue class, qTasks (line 5). In line 7 through 14, we add eight new elements to qTasks using the Enqueue method. Recall that ...
· Figure 2.3
Output of Listing 2.1.3 when viewed through a browser.Listing 2.1.3 begins with the instantiation of the SortedList class (line 4). slTestScores, the SortedList instance, contains the test scores from five students (see lines 7 through 11). Each element of a Sorted...
· Figure 2.1
Output of Listing 2.1.1 when viewed through a browser.Adding Elements to an ArrayList
In Listing 2.1.1 we create two ArrayList class instances, aTerritories and aStates, on lines 5 and 6, respectively. We then populate the aStates ArrayList with a small subset of t...
· <h1>' (single quote)</h1>
The single quote character (') introduces a comment line in VB.NET code. It can be used anywhere on a source line. The end of the physical line ends the comment.
<h1>Rem</h1>
The keyword Rem also introduces a comment in VB....
· using System;/* The reason that i am using interface is that, in several * weeks i will use a bitwise operator for have encryption and decryption* */
public interface IBindesh
{
string encode(string str);
string decode(string str);
}namespace EncryptionDecryption
{
...
· <pre>
<%@ Page Language="VB" %>
<HTML><head>
<script language="VB" runat="server"> Sub Page_Load(Sender As Object, e As EventArgs)
If Not IsPostBack Then
Dim values As New ArrayList() ...