· <%@ Page Language="VB" Debug="true" %>
<HTML><head>
<script language="VB" runat="server"> Sub Page_Load(Sender As Object, e As EventArgs)
If Not IsPostBack Then
Dim values As New ArrayL...
· using System;
using System.Windows.Forms;
using System.Drawing;
using System.ComponentModel;
using System.IO;class FolderDialog:Form
{
TreeView FolderTree;
ImageList FolderTreeIcons;
TreeNode RootNode;
string[] IconFileNames={"MyComp.ico","Drive.ico&quo...
· 谢谢大家,无以回报,贴点儿东西吧。刚才看到下边不少人问给datatable或table添加一个选择框,实际上如果你可以自己做一个webcontrol来实现这个功能,下边是我做的一个带checkbox的webcontrol,由于注释比较全,所以我就不加说明了。using System;
using System.Collections ;
using System.Web.UI...
· Displaying ListView items - with class! by Rob Birdwell
I don't know about you, but I'm very fond of the ListView control - it's a very useful control to have around. Microsoft's .NET Common Language Runtime (CLR) provides much of the functionality you need to display data ...
· 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....