自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(24)
  • 资源 (1)
  • 收藏
  • 关注

原创 导出到excel使用中文文件名

 this.gvPrint.DataSource = dv;            this.gvPrint.DataBind();            Response.Clear();            Response.Buffer = true;            Response.Charset = "GB2312";            Response

2009-09-01 14:20:00 654

原创 将一个业务实体对象序列化并保存到站点的指定目录下

  ///     /// 将一个业务实体对象序列化并保存到站点的指定目录下    ///     /// 一张表单提交到某步骤时的TaskID    /// 业务实体对象    public void SaveSerializeEntity(Type type,  object entity, string filename)    {       // string

2009-07-21 15:27:00 463

原创 无法启动visual studio的localhost web服务器,端口"xxxx"已被使用 解决办法

检查杀毒软件以及防火墙,我装的nod32 就必须关闭web检测。

2009-04-01 09:59:00 3356 9

原创 scriptmanage js调用后台方法

使用PageMehtod的步骤。a)     启用ASP.NET Ajax,关于如何启用ASP.NET Ajax这里不作叙述;b)     在Web.Config中添加HttpModule: ScriptModule;Code:httpModules>add name="ScriptModule" type="System.Web.Handl

2008-11-03 17:22:00 1352 2

原创 字符串凑数处理

.PadLeft(2, 0)

2008-10-27 10:49:00 436

转载 windows服务

最后,谈谈调试中的技巧.编写这种服务程序,调试起来非常的麻烦,而且每次有所变化后,还得频繁的去执行installutil和installutil/u命令,实际上,我们可以通过编写一些BuildEvents来大大简化这其中的烦琐工作.这里,我们在BuildEvents编写如下事件:net stop YourServiceNamecopy /y "$(TargetDir)" "$(Projec

2008-10-27 09:52:00 357

原创 生成插入脚本

declare @tablename   sysname     declare   @column   varchar(1000)      declare   @columndata   varchar(1000)      declare   @sql   varchar(4000)      declare   @xtype   tinyint      declare   @name  

2008-08-26 15:25:00 390

原创 linq to xml demo

using System;using System.Collections.Generic;using System.Linq;using System.Xml;using System.Xml.Linq;using System.Text;namespace ConsoleApplication1{    class Program    {        static void Main() 

2008-07-23 15:32:00 378

原创 Linq to object ex

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{    class Program    {        static void Main()        {            string[] words = {

2008-07-23 13:46:00 301

原创 文件的上传

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

2008-07-22 15:10:00 470

原创 SQL Server 2005数据加密技术应用研究 转载

SQL Server 2005数据加密技术应用研究 2006-08-28 06:00 作者: 周德伟 出处: 计算机与信息技术 责任编辑:方舟 document.write("");  摘要 数据加密是SQL Server 2005新增的数据安全特性,这对应用程序开发

2008-07-21 17:42:00 407

原创 存储过程以及函数加密

@out varchar(50) OUTPUT WITH ENCRYPTION

2008-07-21 17:16:00 291

原创 ajax 发布web 服务 未能加载类型的解决办法

修改成为  

2008-03-06 10:31:00 1019

原创 可能有用的东西

public class TList : ListBase where T : IEntity, new() 

2008-02-27 10:25:00 428

原创 C# 通过url获得ip地址

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.We

2008-01-23 15:27:00 3005

原创 updatepannel 中确认框的问题

 ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "js", "alert(信息添加成功);", true);当遇到comfirm是直接使用空间的属性添加上js代码即可。    this.btDelete.Attributes.Add("onclick", "javascript:return confirm

2008-01-22 18:09:00 390

原创 sql2005 行列转换的例子

 SELECT     categoryproductid, [0] AS p0, [1] AS p1, [2] AS p2, [3] AS p3, [4] AS p4, [5] AS p5, [6] AS p6, [7] AS p7, [8] AS p8, [9] AS p9FROM         (SELECT     categoryproductid, sequence, propert

2008-01-09 11:22:00 471

原创 updatepannel 控件获得焦点的方法

  this.ScriptManager1.SetFocus(this.TextBox2); 

2008-01-04 11:12:00 348

原创 Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The s

       Sys.WebForms.PageRequestManagerServerErrorException: An unknown error occurred while processing the request on the server. The status code returned from the server was: 500在 ScriptManager  内添加

2007-12-04 16:13:00 1674

原创 fckeditor关于传文件报错的皮肤的问题

 * FCKeditor - The text editor for Internet - http://www.fckeditor.net * Copyright (C) 2003-2007 Frederico Caldeira Knabben * * == BEGIN LICENSE == * * Licensed under the terms of any of the following

2007-10-17 13:30:00 633

原创 SQL Server 2005中设置Reporting Services发布web报表的匿名访问

SQL Server 2005中设置Reporting Services发布web报表的匿名访问         一位朋友提出个问题:集成到SQL Server 2005中的Reporting Services已经将报表模板发布到IIS服务器,客户端通过浏览器访问时,默认会弹出Windows集成身份验证的对话框。如果在IIS配置里面把允许匿名(IUSR_**)访问的选项勾选,客

2007-07-11 01:17:00 532

原创 NHibernate 札记

HQL的使用方法:IList list = session.CreateQuery(“from Person”).List(); 这里返回的是一个范型集合。使用 Criteria QueryICriteria criteria = session.CreateCriteria(typeof(Person));criteria.Add(Expression.Eq("Name","Jackie Cha

2007-07-09 17:21:00 423

原创 Xml MembershipProvider 肯定不是我写的~在Microsoft上找到的,大家分享

//===============================================================================================//// (c) Copyright Microsoft Corporation.// This source is subject to the Microsoft Permissive License.

2007-03-22 17:29:00 635

原创 Membership 初探

C:/windows/microsoft.net/framework/v2.0.50727/)中的 aspnet_regsql.exe 通过这个工具注册你的数据库。    如果你使用的不是本地的数据库,修改machine.config   (machine.config在%systemroot%/Microsoft.NET/Framework/v2.x/CONFIG目录下)通过web配置 配置你的

2007-03-22 15:45:00 484

使用nettiers框架,开发的使用本地smtp服务器发送邮件的例子

这是使用nettiers框架开发的使用本地smtp服务器发送电子邮件的例子。数据库脚本在SendMail.SQL 文件夹中

2008-01-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除