![](https://img-blog.csdnimg.cn/20201014180756738.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ASP.NET
luoyue2001
这个作者很懒,什么都没留下…
展开
-
利用DataGrid编辑、修改、删除记录
if exists (select * from dbo.sysobjects where id = object_id(N[dbo].[People]) and OBJECTPROPERTY(id, NIsUserTable) = 1)drop table [dbo].[People]GO CREATE TABLE [dbo].[People] ([pkID] [int]转载 2006-04-03 10:14:00 · 615 阅读 · 0 评论 -
md5加密数据
Dim md5Hasher as New MD5CryptoServiceProvider() Dim hashedBytes as Byte() Dim encoder as New UTF8Encoding() hashedBytes = md5Hasher.ComputeHash(encoder.GetBytes(txtPwd.Te转载 2006-04-23 22:51:00 · 610 阅读 · 0 评论 -
解码
System.Web.HttpUtility.UrlDecode("YourEncodeText",System.Text.Encoding.UTF8);-----------------------------------------------------------------------------------------------private void Button2_Cli原创 2006-04-23 22:52:00 · 801 阅读 · 0 评论 -
jmail组件的详细说明
W3 Jmail参数使用说明 Jmail发信过程中主要使用到以下几个属性:Subject //邮件标题Body //邮件内容Sender //发件人Logging //调用Log记录,以供调试之用Priority //这是邮件的优先级别ServerAddress //邮件服务器的IP地址JMail组件的常用方法:AddAttachment 指定附件文件AddRecipient 加入一个收件人A转载 2006-04-20 12:45:00 · 2397 阅读 · 0 评论 -
捕捉DataGrid的双击事件(C#版本)
namespace DataGridDoubleClick{using System;using System.Drawing;using System.Collections;using System.ComponentModel;using System.Windows.Forms;using System.Data; public class Form1 : System.Windo转载 2006-04-03 10:16:00 · 661 阅读 · 0 评论 -
C#中通过DataGrid显示隶属关系
本文将介绍如何利用DataGridImageColumn列来显示数据的隶属关系,具体的效果如下图 点击图标这一列,就会自动的显示它的下属数据和收缩下属数据。当然对于这个效果中,对原来的DataGridImageColumn进行了一些改动,对DataGrid的也需要一些另外的处理,还有数据也需要有要求,主要是不能对数据进行排序,不来显示会乱掉。其中排序也需要一个字段信息 我这里设置了转载 2006-04-03 10:05:00 · 629 阅读 · 0 评论 -
一个功能齐全的DataGrid分页例子
下面的这个例子提供了DataGrid的分页功能。ASPx代码和Cohe Behind代码分别如下,注意更改数据录连接字符串。结果如下:C#版本 例子DataGridPaging.aspx<%@ Page language="c#" EnableViewState = "true" Codebehind="DataGridPaging.aspx.cs"AutoEventWir转载 2006-04-03 10:24:00 · 675 阅读 · 0 评论 -
ASP.NET中为DataGrid添加合计字段
论坛中最常见的一个问题是:“ 我怎样在 DataGrid 中显示列合计?”。 我亲自多次为这个问题提供了示例代码,因此,我想在DotNetJunkies 的标题中提供这么一份指南。 在这份指南中你将会学到怎样在 DataGrid 中编程实现对某一列的值进行统计,并在 DataGrid 的页脚中显示其合计值。这份指南中供下载的示例中包括了 C# 和 Visual Basic.net 两种代码。转载 2006-04-03 10:11:00 · 620 阅读 · 0 评论 -
C#中实现DataGrid双向排序
在.net 中 DataGrid 虽然有排序的功能,但并不支持双向的排序。用到了,看了些相关的帖子,自己尝试了一种方法,竟然也行得通,主要是用DataGrid.Attributes 存了一个参数,同时在onSortCommand中修改了DataGridColumn的SortExpression. 代码如下: private void原创 2006-04-03 10:09:00 · 504 阅读 · 0 评论 -
将DataGrid中数据倒出Excel文件并下载
OutPutExcel.aspx AutoEventWireup="false" Inherits="eMeng.Exam.OutPutExcel" %>OutPutExcelOutPutExcel.aspx.csusing System;using System.Collections;using System.ComponentModel;using System.Data;usi转载 2006-04-03 11:15:00 · 608 阅读 · 0 评论 -
application和cache实现缓存的差异
每个项目都有一些全局,常用的信息,而这些信息如果在每次使用时都载入,那必将耗费很大的资源,特别是对访问压力大的系统。因此,这个情况中,把这些全局信息放到缓存中是很必要的,放在缓存中可以使得数据能够很快的被读取,节省了很多宝贵的CPU和IO。项目中通常是用application 和cache来实现缓存的功能。他们的用法分别为:1)application:application["test"]转载 2006-04-25 20:08:00 · 725 阅读 · 0 评论