摘要: Forms 身份验证通常指这样一个系统,在该系统中使用 HTTP 客户端重定向将未经身份验证的请求重定向到 HTML 窗体。如果应用程序需要在登录时通过 HTML 窗体收集自己的用户凭据,那么选择 Forms 身份验证就很好。用户提供凭据并提交该窗体。如果应用程序对请求进行身份验证,系统会发出一个 Cookie,在其中包含用于重新获取标识的凭据或密钥。随后发出在请求头中具有该 Cookie 的请求... 阅读全文
posted @ 2006-06-22 19:06 Tim工作室 阅读(573) 评论(0) 推荐(0) 编辑
摘要: Page_Load#region Page_Load private void Page_Load(object sender, System.EventArgs e) { // 在此处放置用户代码以初始化页面 if(! IsPostBack) { strin... 阅读全文
posted @ 2006-06-12 17:23 Tim工作室 阅读(618) 评论(0) 推荐(0) 编辑
摘要: ASP.NET通过UDL访问数据库 阅读全文
posted @ 2006-06-09 14:35 Tim工作室 阅读(508) 评论(0) 推荐(0) 编辑
摘要: 读取Excel表格中的数据 阅读全文
posted @ 2006-06-09 13:55 Tim工作室 阅读(550) 评论(0) 推荐(0) 编辑
摘要: 从数据库中读取文件 阅读全文
posted @ 2006-06-09 13:01 Tim工作室 阅读(600) 评论(0) 推荐(0) 编辑
摘要: 创建表 CREATE TABLE [FileTable] ( [FileID] [int] IDENTITY (1, 1) NOT NULL , [FileData] [image], [FileContentType] [varchar] (50) , [FileDescription] [varchar] (200) , [FileSize] [int] NULL... 阅读全文
posted @ 2006-06-09 12:45 Tim工作室 阅读(1743) 评论(0) 推荐(0) 编辑
摘要: private DataTable dtStore; private System.Windows.Forms.TextBox txtID; private System.Windows.Forms.TextBox txtName; private System.Windows.Forms.BindingManagerBase Bindin... 阅读全文
posted @ 2006-06-03 13:55 Tim工作室 阅读(2620) 评论(1) 推荐(1) 编辑
摘要: SQL语句 SELECT CASE GROUPING(o.customerid) WHEN 0 THEN o.customerid ELSE '(Total)' END AS MyCustomerID, CASE GROUPING(od.orderid) WHEN 0 THEN od.orderid ELSE -1 END AS MyOrderID, SUM(od.quantity*o... 阅读全文
posted @ 2006-06-02 16:46 Tim工作室 阅读(391) 评论(0) 推荐(0) 编辑
摘要: 重写DataGridTextBoxColumn类 Imports SystemImports System.Windows.FormsImports System.DrawingImports System.DataImports System.Collections'/ '/ Summary description for DataGridImageCell.'/ Public Class Da... 阅读全文
posted @ 2006-06-01 16:18 Tim工作室 阅读(1201) 评论(0) 推荐(0) 编辑
摘要: 重DataGridTextBoxColumn类 using System;using System.Windows.Forms;using System.Drawing;using System.Data;using System.Collections;namespace ImageCellInDataGrid{ /**//// /// Summary description fo... 阅读全文
posted @ 2006-06-01 16:13 Tim工作室 阅读(3298) 评论(0) 推荐(0) 编辑