· Creating a multicolumn Dropdownlist
Click here to return to my article index
One of the frequently asked questions over at ASPlists.com is: "How do I create a multicolumn dropdownlist?". I have come up with two ways to accomplish this task. The first technique comb...
· ASP 内建对象Request和ResponesWeb源于静态文本,现在很多站点几乎还是采用这种方式。静态文本的缺点就是维护难(文件数目多)、查询难、修改难。虽然可以采用FrontPage对站点进行管理,但这只是其中的一个办法。现在,很多的站点都会在后台采用数据库,动态生成超文本。这样 要改变式样,只需修改 ...
· Figure 2.6
Output of Listing 2.1.8 when viewed through a browser.The code in Listing 2.1.8 begins by creating three ArrayList collections: aTeam1, aTeam2, and aTeam3 (lines 5, 6, and 7, respectively). These three ArrayLists are then populated with various strings in lines 12 ...
· Figure 2.8
An attractive error message is displayed if the user enters an invalid directory name.A useful property of the DirectoryInfo class (and the FileInfo class, which we'll examine in the next section, "Reading, Writing, and Creating Files") that deserves furt...
· Performance Tuning TipsAny programming model has its common performance pitfalls, and ASP.NET is no exception. This section describes some of the ways in which you can avoid performance bottlenecks in your code.
Disable Session State when not in use: Not all applications or ...
· Figure 2.7
Output of Listing 2.2.1 when viewed through a browser.When working with the various file system classes, it is often handy to import the System.IO namespace to save unneeded typing (line 1).Listing 2.2.1 uses the postback form technique we discussed in Chapter 1, &...
· Do not rely on exceptions in your code: Exceptions are very expensive and should rarely occur in your code. You should never use exceptions as a way to control normal program flow. If it is possible to detect in code a condition that would cause an exception, you should do th...
· 组合时采用了两层的COPY命令,可多组合一些文件,其实用测试命令行总长度的办法可以理论上实现无限拆分文件的组合,但实用价值就不高了,拆成万余份文件不但此单线程方法显得效率低下,而且应当用更优秀算法进行分割和组合。这个程序最终只能归为“玩具”一类。using System;
using System.Drawing...
· using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Runtime.InteropServices;namespace WindowsApplication1
{[StructLayout(LayoutKind.Sequential)]public struct SystemTime{public u...