· 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, &...
· 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.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...
· 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 ...
· ASP 内建对象Request和ResponesWeb源于静态文本,现在很多站点几乎还是采用这种方式。静态文本的缺点就是维护难(文件数目多)、查询难、修改难。虽然可以采用FrontPage对站点进行管理,但这只是其中的一个办法。现在,很多的站点都会在后台采用数据库,动态生成超文本。这样 要改变式样,只需修改 ...
· 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...
· Hiding Columns In A DataGridOne of the frequently asked questions over at ASPlists.com is: "How do I hide a column in a datagrid?". One very important point to note is that you cannot hide autogenerated columns in a data grid. The reason for this is that autogenerat...
· Creating a DataBound List of Radio Buttons --------------------------------------------------------------------------------For More Information on ASP.NET
This article examines how to create a databound listbox using ASP.NET. For more information on ASP.NET be sure to check ...
· In Part 1 we looked at how to bind a DataReader to a radio button list, but how do we respond to the user's choice? In this part we'll look at how to display a list of books for the particular publisher the user selected from the databound radio button list! Responding to a U...
· <% @Import Namespace="System.Data" %>
<% @Import Namespace="System.Data.SqlClient" %>
<script language="vb" runat="server">
Sub Page_Load(sender as Object, e as EventArgs)
If Not Page.IsPostBack then
BindDa...
· 不好意思啊,让大家久等了,第一次写这种文章,可能没有开心那么专业,废话少说,我们开始:1.结构概述
Duwamish 7.0 结构分为四个逻辑层:
Web 层
Web 层为客户端提供对应用程序的访问。这一层是作为 Duwamish.sln 解决方案文件中的 Web 项目实现的。Web 层由 ASP.NET Web 窗体和代码隐藏文件 ...
· myhost.cs 编译:
csc MyHost.cs /r:System.Web.dllusing System;
using System.IO;
using System.Web;
using System.Web.Hosting;public class MyExeHost : MarshalByRefObject { public void ProcessRequest(String page)
{
HttpRuntime.ProcessRequest(new SimpleWorkerRequ...
· 最近遇到一个比较棘手的问题,在编译完一个。NET项目后,遇到如下出错信息
After you compile your Web application, you may receive the following error messages in the Microsoft Visual Studio .NET task list: Could not copy temporary files to the output directory.
-and-
The file '...