· 1.从数据库中select [ID],[Name],[LagTime],[CreateDate] from ChatRooms where DeleteDate is null and Name like '%" + strChatRoomName + "%',然后绑定到DataGrid上,现在要点击按钮后获得所选记录的ID方法1:设置DataKeyField为ID,取得选定记录的IDint i = (int)dgChatRooms.DataKe...
· 以前,在WEB页面中如果想使用树形控件的话,往往会有些麻烦,有时甚至要自己写代码来达到用树形列表显示数据的目的。在ASP.net中,我们可以很方便地使用由微软提供的Internet Exploer Web Controls控件来实现树形列表。在微软提供的这套Internet Exploere Web Controls控件集合中,包括有MultiPage...
· 以前,在WEB页面中如果想使用树形控件的话,往往会有些麻烦,有时甚至要自己写代码来达到用树形列表显示数据的目的。在ASP.net中,我们可以很方便地使用由微软提供的Internet Exploer Web Controls控件来实现树形列表。在微软提供的这套Internet Exploere Web Controls控件集合中,包括有MultiPage...
· A common way to build the navigation and layout for an ASP-driven website is to use include files. Most advanced ASP developers know that when you do this, it is best to encapsulate the functionality of the include file in a Sub or Function, and then to call this routine from...
· ASP.NET/Perl.NET Database Access ExampleOne of the features of the .NET framework is its ability to handle multiple languages. Third party compiler vendors can create and implement a compiler targeted for the .NET runtime. In fact, over the course of the next year, you can ex...
· The following example shows the use of Regular Expresssions in C#.This program has basic validation scripts for validation easily useable in all programs./*csc /r:System.Text.RegularExpressions.dll,System.dll Validation.cs */using System.Text.RegularExpressions;using System;c...
· 简介 在 Web 应用程序这样的无状态环境中,了解会话状态的概念并没有实际的意义。尽管如此,有效的状态管理对于大多数 Web 应用程序来说都是一个必备的功能。Microsoft ASP.NET 以及许多其他服务器端编程环境都提供了一个抽象层,允许应用程序基于每个用户和每个应用程序存储持久性数据。 ...