自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(109)
  • 资源 (12)
  • 收藏
  • 关注

原创 在Silverlight中读取指定URL图片包数据

                                                                                                                                                                                                       

2009-04-30 10:11:00 917

原创 上传图片前预览

上传地图 <!-- #newPreview { filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod=scale); } --> #newPrevi

2009-01-14 15:56:00 1074

转载 sqlserver 分区表

--1 建分区函数,用于自动划分物理表数据的流向(建好后可以在Databases/[dbName]/Storage中看到)/* 下面分成四个区域=BigScreen且=Computer且=PoolTable若是RIGHT,则X1 若是LEFT, 则X1 */CREATE PARTITION FUNCTION [pf_Product_Partition](VARCHAR(10)) AS RA

2008-12-28 11:45:00 586

原创 GridView中嵌入radio,实现单选

        .DataRow)        {            erow = e.Row.RowIndex;            GridView reap = (GridView)e.Row.FindControl("Repeater1");            reap.DataSource = ds;            reap.DataBind();        } 

2008-12-06 15:13:00 730

原创 asp.net 生成word

///            /// word 应用对象           ///            private Microsoft.Office.Interop.Word.Application _wordApplication;              ///            /// word 文件对象           ///            private Mic

2008-11-14 18:09:00 586

原创 silverlight 生成图标的基本使用方式

using Visifire.Charts;using Visifire.Commons;namespace SilverlightApplication2{    public partial class Page : UserControl    {         public Page()        {            InitializeComponent();      

2008-09-10 09:15:00 519

原创 silverlight相册

http://www.cnblogs.com/daizhj/archive/2008/09/05/1281204.html

2008-09-08 13:41:00 417

转载 c# 生成缩略图

 private static Size NewSize(int maxWidth,int maxHeight, int width,int height)    {        double w = 0.0;        double h = 0.0;        double sw = Convert.ToDouble(width);        double sh = Convert

2008-08-29 13:25:00 346

原创 silverlight 右键

 document.oncontextmenu=eventfalse;function eventfalse(ev){    ev = ev ? ev : (window.event ? window.event : null); ev.returnValue=false;}                                    Windowless="true" runa

2008-08-25 14:19:00 437

原创 stream 与 byte[] 转换

 * Stream 和 byte[] 之间的转换 * - - - - - - - - - - - - - - - - - - - - - - - *//// /// 将 Stream 转成 byte[]/// public byte[] StreamToBytes(Stream stream){    byte[] bytes = new byte[stream.Length];    strea

2008-08-05 10:21:00 1276 1

原创 Silverlight 和html 交互

   //<!{CDATA[ //定义全局变量: var testVar = "孟宪会";  //定义全局函数: function getArrayTest() {  if(arguments.length > 0)  {   alert("js 对话框:您传递了参数。" + arguments[0]);   return  arguments[0];

2008-07-11 12:39:00 412

原创 一个批量下载其它机子图片的c#类(downmoon)

using System; 2using System.Collections.Generic; 3using System.Linq; 4using System.Text; 5using System.IO; 6 7namespace DownloadImagebyXMLListFor2008 8{ 9    public class HttpDownLoad

2008-07-08 13:47:00 447

原创 逆规范化数据列表

---递归的select 变量----逆规范化数据列表 declare @avi varchar(3000) set @avi= select @avi=@avi+d.name1 from jinxing_gengxin as d select @avi --select d.name1 from jinxing_gengxin as d----动态交叉表查询 --使用case 方法创

2008-07-02 17:05:00 659

原创 使用rowversion防止更新丢失

create table jinxing_gengxin(id int identity(1,1),name1 varchar(100),name2 varchar(200),[rowversion] timestamp--每次更新这行数据的话,rowversion就会自动变化)goinsert into jinxing_gengxin(name1,name2) v

2008-07-02 14:56:00 2856

原创 js拖动效果

body{font-family:Verdana;font-size:11px;color:#333;} #win{position:absolute;left:100px;top:100px;width:200px;height:150px;border:1px solid #000;} .title{width:100%;background:#000;height:

2008-07-01 14:29:00 559

原创 多线程

一段比较经典的多线程学习代码。1、用到了多线程的同步问题。2、用到了多线程的顺序问题。如果有兴趣的请仔细阅读下面的代码。注意其中代码段的顺序,思考一下,这些代码的顺序能否互相调换,为什么?这应该对学习很有帮助的。为了演示,让所有的线程都Sleep了一段时间。using System.Net;using System;using System.IO;using Syste

2008-07-01 09:37:00 491 1

原创 分页查询,新解

对于存储过程,不知道人们为什么 使用 not in 的方式来区分数据,其实 这样更加慢,对于一般的数据查询,结果的排序其实不是最主要的,效率才是最关键的,因此这里,不使用not in 的方式来查询 而是使用 top 排序的方式,如果查询的是前几页那么使用一种排序查询方式,而查询的是后几页就使用相反的一种排序方式,具体如何使用不同的排序,要根据页面索引来决定了,最好已总页的1/2为分解点 d

2008-06-30 16:10:00 334

原创 like 通配符

%   包含零个或多个字符的任意字符串。    WHERE title LIKE %computer% 将查找在书名中任意位置包含单词 "computer" 的所有书名。       _(下划线)  任何单个字符。 WHERE au_fname LIKE _ean 将查找以 ean 结尾的所有 4 个字母的名字(Dean、Sean 等)。     

2008-06-30 14:44:00 761

原创 sqlserver 全文检索

execute sp_fulltext_database enable---建立全文检索目录ft_testexecute sp_fulltext_catalog ft_winner2050, create--为SoftName列建立全文索引数据元,PK_Soft为TopWinCMS_Soft表中由主键所建立的唯一索引,这个参数是必需的。execute sp_full

2008-06-30 14:08:00 517

转载 javascript 未结束的字符串常量

javascript 未结束的字符串常量2007年08月16日 星期四 14:12 因为js的调用是就是因为charset="utf-8",导致xx.js里的一些汉字出现乱码,而引起这个错误,以后切记切 记............... 刚才遇到一个问题

2008-06-25 16:43:00 2236 2

原创 屏蔽右键菜单

/*--------------------------------------------功能描述: 禁用右键菜单创 建 人: lzm创建日期: 2008.05.27返 回 值: 无------------------------------------------------*/document.oncontextmenu=eventfalse;document.o

2008-06-24 17:44:00 459

转载 ASP.NET生成层次较复杂的XML

.业务逻辑层:public DataSet ABCData()        {            DataBase db = new DataBase();            string sql = "select * from products where products_Year=2008";            DataSet ds = db.GetD

2008-06-23 10:12:00 340

转载 比较C#中的readonly与const

C#中有两种常量类型,分别为readonly(运行时常量)与const(编译时常量),本文将就这两种类型的不同特性进行比较并说明各自的适用场景。工作原理    readonly为运行时常量,程序运行时进行赋值,赋值完成后便无法更改,因此也有人称其为只读变量。    const为编译时常量,程序编译时将对常量值进行解析,并将所有常量引用替换为相应值。    下面声明两个常量:

2008-06-20 16:11:00 348

原创 输入文本自动提示

function autosuggestMatch(sText,arrValues) { var arrResult=new Array;     if(sText!="")     {         for(var i=0;i<arrValues.length;i++)         {             if(arrValues[i].indexOf(sT

2008-06-19 16:39:00 441

原创 上下键 切换聚焦控件

        function show(obj) {      if(form1.elements[form1.elements.length-1]!=obj)     {          for(var i=0;i<form1.elements.length;i++)         {             if(form1.elements

2008-06-19 14:40:00 541

原创 .net 调用 office com导出excel

多年来 COM 对象一直是 Windows 编程的基础,然而随着技术的进步和发展,微软推出了更佳出色的.NET。.NET Framework 提供了一个称为公共语言运行库的运行时环境(CLR),它的托管执行过程,自动的内存管理,以及在版本的控制上都较COM技术有很大的提高。可以预见的是,.NET 平台应用程序将最终取代那些用 COM 开发的应用程序。但不可避免的是,在向.NET过渡时,我们还是需要

2008-06-11 11:11:00 892

原创 b/s导出到excel

  public void ToExcel()    {        StringBuilder strData = new StringBuilder();        strData.Append("导出时间:" + DateTime.Now.ToString("yyyy-MM-dd HH:mm") + "");        strData.Append("" +      

2008-06-11 09:48:00 526

原创 两个分页存储过程

drop proc [dbo].[UP_GetRecordByPage]goCREATE PROCEDURE [dbo].[UP_GetRecordByPage]    @tblName      varchar(255),       -- 表名    @fldName      varchar(255),       -- 主键字段名    @strcontent   nvarchar(255

2008-06-06 10:05:00 308

原创 Graphics 画图写东西,并且把图片打印出来

  FileStream fs = new FileStream(Server.MapPath(".") + "/" + "1.jpg", FileMode.Open, FileAccess.Read);       System.Drawing.Bitmap image = new System.Drawing.Bitmap(467, 209, System.Drawing.Imaging.Pi

2008-06-05 09:37:00 1274

原创 支持断点续传﹐IE识的文件类型也不会在IE口中开启

System.IO.Stream iStream = null;byte[] buffer = new Byte[10240];int length;long dataToRead;string filename = System.IO.Path.GetFileName("filename.xls");try{iStream = new System.IO.FileStream(dfdo.Disk

2008-05-27 15:47:00 328

原创 C#读取一个目录,然后点击其中一个节点动态加载他的子目录和文件,节省开销

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-05-26 17:02:00 630

原创 使用DefaultButton 实现回车事件,可以有多个,甚至在用户控件内也行

 

2008-05-26 16:18:00 315

原创 c#递归 读取文件目录,然后绑定treeview

protected void Page_Load(object sender, EventArgs e)    {        if (!IsPostBack)        {            TreeNode tp = new TreeNode("0", "0");            Fun(@"F:/1月27日下午6点", tp);            //for

2008-05-26 13:31:00 668

原创 自定义控件之事件回传

using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{    [Defa

2008-05-22 10:06:00 506

原创 Response.AddHeader实现下载

 ///     /// Response.AddHeader实现下载    ///     /// 完整的文件路径    /// 文件名    private void DownFile(string filePath, string fileName)    {        FileInfo fileInfo = new FileInfo(filePath);        Response

2008-05-21 11:00:00 1741 1

原创 asp.net打印

B/S结构导致了Web应用程序中打印的特殊性。   ? 程序运行在浏览器中,打印机在本地,而文件确可能在服务器上,导致了打印控制不是很灵活。  ? 格式如何控制和定制等,是我们开发中可能会面对的问题。  打印文档的生成  ? 1、客户端脚本方式  一般情况下,主要使用JS 可以分析源页面的内容,将欲打印的页面元素提取出来,实现打印。通过分析源文档的内容,可以生成打印目标文档。 

2008-05-21 10:23:00 782

原创 开发自定义控件样式(5)--webcontrol的独立方法与样式

using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{    [Defa

2008-05-16 23:42:00 732

原创 最简单的自定义控件(4)--使用Viewstate最为属性的内部保存

using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{    [Defa

2008-05-16 22:41:00 879

原创 最简单的自定义控件(3)--与HtmlTextWriter有关的枚举

using System;using System.Collections.Generic;using System.ComponentModel;using System.Text;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace JinXingWebControl{    [Defa

2008-05-16 22:29:00 453

原创 最简单的自定义控件(2)--增加基本属性

  private string paymentMethodText = "Payment Method";        private string creditCardNoText = "CreditCardNoText";        private string cardHolderNameText = "CardHolderNameText";        private stri

2008-05-16 21:52:00 377

aspose.word .net +.netcore 版本可用

aspose.word .net +.netcore 版本可用

2021-04-08

server 2012安装fx35 需要的资源 sxs

在server 2012上安装sqlserver 数据库,需要安装 fx35,否则不能安装成功,而系统自身又不带fk 35,需要下载此资源, 安装fx35 需要的资源 sxs

2019-06-18

天气预报城市ID

天气预报城市ID

2014-09-28

rtcp,rtsp源码

r t c p ,trsp, 源码

2011-08-16

fckeditor-new

fckeditor-newfckeditor-new

2009-12-28

系统分析师论文(转传)

系统分析师论文,系统分析师论文,系统分析师论文,系统分析师论文

2009-03-04

js 导航 菜单

js菜单,下载别人的然后有上传的,呵呵,挣积分啦

2008-10-28

wpf把xaml保存成gif png 或者 jpg

wpf把xaml保存成gif png 或者 jpg

2008-09-11

silverlight 生成超酷的报表图

silverlight 生成超酷的报表图

2008-09-09

sivlerlight 相册 剪辑,滤镜,添加文字等效果

sivlerlight 相册 剪辑,滤镜,添加文字等效果

2008-09-08

silverlight 支持右键和滚轮

silverlight 支持右键和滚轮(转载)

2008-07-31

silverlight右键

silverlight 右键

2008-07-31

空空如也

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

TA关注的人

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