随笔分类 -  dotnet

xsd 生成 xsd 文件为类文件
摘要:Code highlighting produced by Actipro CodeHighlighter (freeware) http://www.CodeHighlighter.com/ -->C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bin>xsd /classes /language:CS "C: \Documents and S... 阅读全文

posted @ 2008-07-04 09:38 gwazy 阅读(816) 评论(0) 推荐(0)

mysql for CodeSmith
摘要:下载 http://www.cnblogs.com/Files/gwazy/SchemaProviders.rar 阅读全文

posted @ 2008-06-05 14:01 gwazy 阅读(193) 评论(0) 推荐(0)

正则删除 html 代码
摘要:public string DelData(string HTML) { System.Text.RegularExpressions.Regex regEx = new System.Text.RegularExpressions.Regex(@"]*>",System.Text.RegularExpressions.RegexOptions.... 阅读全文

posted @ 2008-05-27 17:37 gwazy 阅读(425) 评论(0) 推荐(0)

vs 2008 .net 2.0 使用AJAX:'sys' 未定义错误解决
摘要:修改 web.config 添加 使用3.5 没此错误。。。。 阅读全文

posted @ 2008-05-22 17:44 gwazy 阅读(430) 评论(0) 推荐(0)

asp.net ajax 提交中,暂停提交
摘要:from msdn protected void Button1_Click(object sender, EventArgs e) { System.Threading.Thread.Sleep(3000); Label1.Text = System.DateTime.Now.ToString(); } ... 阅读全文

posted @ 2007-12-26 09:54 gwazy 阅读(824) 评论(1) 推荐(0)

开机启动自动运行!
摘要:#region开机启动项 /// /// ///是否启动 ///启动值的名称 ///启动程序的路径 publicstaticvoidRunWhenStart(boolStarted,stringname,stringpath) { RegistryKeyHKLM=Registry.LocalMachine; RegistryKeyRun=H... 阅读全文

posted @ 2007-12-25 15:56 gwazy 阅读(1080) 评论(0) 推荐(0)

.3.5 DataPager 分页
摘要:跳转到第几页 public void TemplatePagerField_OnPagerCommand(object sender, DataPagerCommandEventArgs e) { switch (e.CommandName) { ... 阅读全文

posted @ 2007-12-18 10:17 gwazy 阅读(1617) 评论(0) 推荐(0)

linq 常用的语法
摘要://Copyright (C) Microsoft Corporation. All rights reserved. using System; using System.Collections; using System.Collections.Generic; using System.Linq; static class Samples { static int[... 阅读全文

posted @ 2007-12-15 10:14 gwazy 阅读(380) 评论(0) 推荐(0)

Ms rdlc 打印
摘要:using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using Microsoft.Reporting.Wi... 阅读全文

posted @ 2007-12-08 15:37 gwazy 阅读(1813) 评论(0) 推荐(0)

c#数据运算处理时注意的
摘要:上午做个东西,只有一运算后的结果就变了 有兴趣的朋友跟踪一下 double CurY = this.panel1.Width * 18.0 / 20.0 / 80.0 * 80.0; double Cury = this.panel1.Width * 18 / 20 / 80 * 80; 阅读全文

posted @ 2007-10-10 14:35 gwazy 阅读(315) 评论(1) 推荐(0)

泛型学习
摘要:using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebContr... 阅读全文

posted @ 2007-08-13 13:33 gwazy 阅读(300) 评论(0) 推荐(0)

c# 进程间同步实现
摘要:转自msdn 的。。 Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->// This example shows how a Mutex is used to synchronize access// to a protected resource.... 阅读全文

posted @ 2007-07-26 17:42 gwazy 阅读(1084) 评论(0) 推荐(0)

asp.net ajax UpdatePanel 的使用
摘要:无标题页 using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.... 阅读全文

posted @ 2007-06-28 14:30 gwazy 阅读(508) 评论(0) 推荐(0)

asp.net ajax 学习1
摘要:Untitled Page Your Name Email Address Your Message Send using ... 阅读全文

posted @ 2007-06-28 10:06 gwazy 阅读(267) 评论(0) 推荐(0)

gdi+ 折线图
摘要:panle 为画图的容器,data 每个项为数据输入格式为 1,2,3,4 time 格式为 "10:20,10:30,10:40 "name 格式为 "项目1,项目2"; static public void StaDrawHdImage(Panel ImagePanle,ArrayList data,string time,string names) ... 阅读全文

posted @ 2007-06-05 10:32 gwazy 阅读(966) 评论(3) 推荐(0)

BitComet web 插件和 flash get web 插件 对脚本的影响
摘要:今天程序中发现一个怪异的问题 using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web... 阅读全文

posted @ 2007-03-17 12:08 gwazy 阅读(513) 评论(1) 推荐(0)

.net 2.0 中 ‘注册为 allowDefinition='MachineToApplication' 的节是错误的’
摘要:调试ASP.NET程序时发生错误:在应用程序级别之外使用注册为 allowDefinition='MachineToApplication' 的节是错误的。如果在 IIS 中没有将虚拟目录配置为应用程序,则可能导致此错误。 若IIS中没有应用程序名,先创建,若还不行把C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\CONFIG\machine.con... 阅读全文

posted @ 2007-03-14 16:56 gwazy 阅读(23473) 评论(18) 推荐(0)

视频播放时抓图
摘要:using System ;using System.Drawing ;using System.Collections ;using System.ComponentModel ;using System.Windows.Forms ;using System.Data ;using Microsoft.DirectX.AudioVideoPlayback ;using System.I... 阅读全文

posted @ 2006-10-21 17:06 gwazy 阅读(888) 评论(4) 推荐(0)

owc 的使用技巧
摘要:owc 使用时好些方法,无法知道..我们可以在 excel 中录一个宏,当中通过向导生成你所要的类型....然后打开宏,查看属性,方法....和 在 dotnet 中的方法类似..... 阅读全文

posted @ 2006-10-19 14:34 gwazy 阅读(376) 评论(0) 推荐(0)

datagrid gridview 倒出数据为 excel 时,编号问题
摘要:把gridview 中的数据倒出 为 excel时 (编号长时在 excel 中会变成科学计数) //倒出按钮 protected void Btn_ExportClick(object sender, EventArgs e) { string style = @" .text { mso-number-format:\@; } "; ... 阅读全文

posted @ 2006-08-23 14:40 gwazy 阅读(4922) 评论(1) 推荐(0)

导航