随笔分类 -  .NET

摘要:protected void Page_Load(object sender, System.EventArgs e) {mytitle.InnerText += System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString(); } 阅读全文
posted @ 2008-05-26 16:26 ahuo 阅读(393) 评论(0) 推荐(0)
摘要:由于ias的日志文件实在太难看了,写了一个工具去解析它,并不是很完善的。 使用时把数据文件拖进去。 http://www.cnblogs.com/Files/ahuo/IASLogViewer.rar 阅读全文
posted @ 2008-04-21 16:02 ahuo 阅读(575) 评论(0) 推荐(0)
摘要:设置Form的AllowDrop为true private void Form1_DragDrop(object sender, DragEventArgs e) { string path = ((System.Array)e.Data.GetData(DataFormats.FileDrop)).GetValue(0).ToString(); ... 阅读全文
posted @ 2008-04-21 15:49 ahuo 阅读(5887) 评论(2) 推荐(0)
摘要:确认删除界面 btn.Attributes.Add("onclick", "return confirm('是否清除数据?')"); 阅读全文
posted @ 2008-02-18 10:23 ahuo 阅读(1244) 评论(0) 推荐(0)
摘要:不带参数的构造函数称为“默认构造函数通过将构造函数设置为私有构造函数,可以阻止类被实例化 . 私有构造函数是一种特殊的实例构造函数。它通常用在只包含静态成员的类中。如果类具有一个或多个私有构造函数而没有公共构造函数,则不允许其他类(除了嵌套类)创建该类的实例,私有构造函数可用于阻止创建类的实例,私有构造函数可用于阻止创建类的实例 静态构造函数用于初始化任何静态数据,或用于执行仅需执行一次的特定... 阅读全文
posted @ 2008-01-25 12:57 ahuo 阅读(882) 评论(0) 推荐(0)
摘要://Dictionary System.Collections.DictionaryEntry dic=new System.Collections.DictionaryEntry("key1","value1"); //ArrayList System.Collections.ArrayList list=new System.Collections.ArrayList(); list.Add... 阅读全文
posted @ 2008-01-25 10:49 ahuo 阅读(1056) 评论(0) 推荐(0)
摘要:HttpCookie ck = Request.Cookies["cktest"]; if (ck == null) { ck = new HttpCookie("cktest"); ck.Value = "123"; ck.Expires = D... 阅读全文
posted @ 2008-01-21 10:08 ahuo 阅读(4281) 评论(1) 推荐(0)
摘要:所有.NET配置文件所必须的根元素 实际ASP.NET配置设置的根元素 标记。 "On" 始终显示自定义(友好的)信息。如果没有提供defaultRedirect属性,则用户将看到一般的错误信息. "Off" 始终显示详细的 ASP.NET 错误信息。显示全部的错误细节 "Rem... 阅读全文
posted @ 2007-11-28 11:32 ahuo 阅读(375) 评论(0) 推荐(0)
摘要:using System.Runtime.InteropServices; [DllImport("User32.dll", EntryPoint = "FindWindow")] private static extern IntPtr FindWindow(string lpClassName, string lpWindowName); [DllImpor... 阅读全文
posted @ 2007-09-21 17:40 ahuo 阅读(770) 评论(1) 推荐(0)
摘要:Font fn = new Font("", 12,FontStyle.Bold); textBox.Font = fn; 阅读全文
posted @ 2007-09-09 12:50 ahuo 阅读(5942) 评论(1) 推荐(0)
摘要:using System; using System.Collections.Generic; using System.Text; namespace CEncrypt { public class Encrypt { public Encrypt() { } /**//// /// 加密 ///... 阅读全文
posted @ 2007-09-07 12:06 ahuo 阅读(399) 评论(0) 推荐(0)
摘要:Process p = new Process(); p.StartInfo.FileName = "cmd.exe"; //設定程序名 p.StartInfo.Arguments = "/c " command; //設定程式執行參數 p.StartInfo.UseShellExecute = false; //關閉Shell的使用 p.StartInfo.RedirectStandardIn... 阅读全文
posted @ 2007-09-06 16:02 ahuo 阅读(1234) 评论(0) 推荐(0)
摘要:Debug.Listeners.Add(new TextWriterTraceListener(Console.Out)); Debug.AutoFlush = true; Debug.WriteLine("start..!"); 阅读全文
posted @ 2007-09-04 11:21 ahuo 阅读(1261) 评论(0) 推荐(0)
摘要:telnet 客户端 #define NUL 0 #define BEL 7 #define BS 8 #define HT 9 #define LF 10 #define VT 11 #define FF 12 #define CR 13 #define SE 240 #define NOP 241 #defi... 阅读全文
posted @ 2007-09-03 22:44 ahuo 阅读(3396) 评论(2) 推荐(0)
摘要:数据结构 描述 实现头文件 向量(vector)... 阅读全文
posted @ 2007-08-17 17:15 ahuo 阅读(1463) 评论(2) 推荐(0)
摘要:protected void Page_Load(object sender, EventArgs e)//夫页面的函数 { ctrl.BackEvent += delegate(object s, EventArgs ea) { DO(); }; ... 阅读全文
posted @ 2007-07-27 16:28 ahuo 阅读(615) 评论(0) 推荐(0)
摘要:网上很多朋友说运行有错所以现在为大家提供一个可以用的完整的实例!完整工程http://www.cnblogs.com/Files/ahuo/WAjax.rar 阅读全文
posted @ 2007-07-20 15:38 ahuo 阅读(1908) 评论(3) 推荐(0)
摘要:http://www.cnblogs.com/Files/ahuo/Chart.rar用法: Response.ContentType = "image/png"; string[] xValues, yValues; LineChart line = new LineChart(Color.White); l... 阅读全文
posted @ 2007-07-11 15:57 ahuo 阅读(351) 评论(0) 推荐(0)
摘要:.btn{ border-right: #f03f96 2px solid; padding-right: 2px; border-top: #f03f96 2px solid; padding-left: 2px; font-weight: bold; font-size: 12px; filter: progid:DXImageTransform.Microsoft.Gradient(Grad... 阅读全文
posted @ 2007-07-10 16:32 ahuo 阅读(408) 评论(1) 推荐(0)
摘要:很多人都遇这样的问题首先告诉大家visible这个属性是用不了的主要是通过样式来控制 阅读全文
posted @ 2007-07-10 10:53 ahuo 阅读(393) 评论(2) 推荐(0)