摘要:
一般情况下,我们喜欢使用Session储存我们的变量。Asp.Net提供了下面一些方法储存Session的值: InProc State Server SQL Server “InProc”表示我们使用传统ASP一样的方法储存Session的值,而且“State Server”则表示使用另外一台主机来储存Session的值。当然我们也能使用SQL Server储存值,我们这篇文章就专门用于讲解这种方法。 运行InstallSqlState.sql文件 首先需要在Winnt\Microsoft.Net中找到InstallSqlState.sql文件,然后在SQL Server 中执行它。在我的机 阅读全文
摘要:
using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Drawing;public partial class Valida 阅读全文
摘要:
XmlSiteMapProvider 是 ASP.NET 的默认提供程序,它读取位于 ASP.NET 应用程序的目录结构中名为 Web.sitemap 的文件的XML 数据。默认情况下,Web.sitemap 文件位于应用程序根目录下,但是如果想要更改 XmlSiteMapProvider 从中加载数据的文件的名称或位置,您可以重写Web.config 文件中的默认配置。通过重写 Web.config 文件中的默认配置设置,您可以根据需要为每个 ASP.NET 应用程序定制 XmlSiteMapProvider 的行为。//下面的配置采用默认配置//system.websiteMap d 阅读全文