上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 107 下一页
摘要: 作者:未知 由于本文网上多处见到 对于谁是作者 无法肯定1、下载owc11 COM组件 http://www.microsoft.com/downloads/details.aspx?FamilyID=7287252c-402e-4f72-97a5-e0fd290d4b76&displaylang=en2、注册owc11 在工程中添加 C:\Program Files\Common Files\Microsoft Shared\Web Components\11 文件下的owc11.dll引用 或者按如下图所以添加com3、在工程中添加 using OWC11;4、开始coding 举例如下: 阅读全文
posted @ 2004-10-26 19:10 leonardleonard 阅读(102) 评论(0) 推荐(0) 编辑
摘要: body onkeydown="KeyDown()"function KeyDown(){ //屏蔽退格删除键,屏蔽 F5 刷新键,Ctrl + R if ((event.keyCode==116)||(event.ctrlKey && event.keyCode==82)) { event.keyCode=0; event.returnValue=false; } } 阅读全文
posted @ 2004-10-26 19:10 leonardleonard 阅读(122) 评论(0) 推荐(0) 编辑
摘要: 程序中图片是动态显示的原先把打算把图片保存在服务器端然后显示可是由于ie的缓存问题导致图片无法实时更新显示所以改为把图片存在session中然后再显示需要保存的时候再保存到本地//--------------chart.ashx.cs-------------------using System;using System.Web.SessionState;using System.IO;using System.Web;namespace WebApplication3{/// summary/// chart 的摘要说明。/// /summarypublic class ChartH 阅读全文
posted @ 2004-10-26 19:03 leonardleonard 阅读(268) 评论(0) 推荐(0) 编辑
摘要: 作者:木子 http://blog.csdn.net/derny/首先要创建一个表包含自段image 和 type 类型各自为image 和 vnancharWebForm1.aspx%@ Page language="c#" Codebehind="WebForm1.aspx.cs" AutoEventWireup="false" Inherits="ReadAndWritePicFromDB.WebForm1" % !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" HTML HEAD titleW 阅读全文
posted @ 2004-10-26 19:01 leonardleonard 阅读(199) 评论(0) 推荐(0) 编辑
摘要: 作者:木子 http://blog.csdn.net/derny/下面利用ashx文件可以方便实现从数据库中读取图片并显示在datagrid当中//---------------------------------------BindImage.aspx ----------------------------------------%@ Page language="c#" Codebehind="BindImage.aspx.cs" AutoEventWireup="false" Inherits="ShowImage.BindImg" %HTMLHEADtitleBind 阅读全文
posted @ 2004-10-26 19:00 leonardleonard 阅读(117) 评论(0) 推荐(0) 编辑
摘要: Selecting, Confirming & Deleting Multiple Checkbox Items In A DataGrid (i.e. HotMail & Yahoo)IntroductionAlthough I don't have either a Hotmail or Yahoo email account, I do have friends that do, and I have often seen them check their e-mail and noticed how it was all neatly displayed in a table. Rig 阅读全文
posted @ 2004-10-26 18:53 leonardleonard 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 作者:未知彩色图像转换为黑白图像时需要计算图像中每像素有效的亮度值,通过匹配像素亮度值可以轻松转换为黑白图像。计算像素有效的亮度值可以使用下面的公式:Y=0.3RED+0.59GREEN+0.11Blue然后使用 Color.FromArgb(Y,Y,Y) 来把计算后的值转换转换代码可以使用下面的方法来实现:[C#]publicBitmapConvertToGrayscale(Bitmapsource){Bitmapbm=newBitmap(source.Width,source.Height);for(inty=0;ybm.Height;y++){for(intx=0;xbm.Width 阅读全文
posted @ 2004-10-26 18:51 leonardleonard 阅读(274) 评论(0) 推荐(0) 编辑
摘要: 作者:未知文本的DES加密为了对称加密的安全,将密码进行封装,先新建一个用于保存密码的类库cl:using System;using System.Text ;namespace cl{/// summary/// Class1 的摘要说明。/// /summarypublic class Class1{public Class1(){}public string getiv(){string iv="********";//八位return iv;}public string getkey(){string key="01160129";//八位return key;}}}然后新建a 阅读全文
posted @ 2004-10-26 18:48 leonardleonard 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 作者:http://blog.csdn.net/china2001ok/创建和写文本文件新建.aspx(主要是StreamWriter 和StreamReader )using System.IO ;//不可以少了private void Button1_Click(object sender, System.EventArgs e){StreamWriter sw;//调用File类的CreateText方法返回一个StreamWriter在创建StreamWriter之后,可以调用它的Write方法将文本写到文件中sw=File.CreateText (MapPath("ok.txt")) 阅读全文
posted @ 2004-10-26 18:46 leonardleonard 阅读(87) 评论(0) 推荐(0) 编辑
摘要: 作者:未知 请与本人联系DataReader 的默认行为是在整个数据行可用时立即以行的形式加载传入数据。但是,对于二进制大对象 (BLOB) 则需要进行不同的处理,因为它们可能包含数十亿字节的数据,而单个行中无法包含如此多的数据。Command.ExecuteReader 方法具有一个重载,它将采用 CommandBehavior 参数来修改 DataReader 的默认行为。您可以将 CommandBehavior.SequentialAccess 传递到 ExecuteReader 方法来修改 DataReader 的默认行为,以便让 DataReader 按照顺序在接收到数据时立即将其加 阅读全文
posted @ 2004-10-25 19:56 leonardleonard 阅读(179) 评论(0) 推荐(0) 编辑
上一页 1 ··· 91 92 93 94 95 96 97 98 99 ··· 107 下一页