随笔分类 -  C#

摘要:protected void Page_Load(object sender, EventArgs e) { A a = new A(); a.a = "ha"; set(a); TextBox1.Text = a.a; // 值为 hha A b = new A(); b.a = "ha"; se... 阅读全文

posted @ 2012-06-25 23:18 codecraft 阅读(211) 评论(0) 推荐(0)

摘要:byte[] LoadImageFile( string fileName, string fileLocation, int maxImageSize ) { byte[] imagebytes = null; string fullpath = fileLocation + fileName; ... 阅读全文

posted @ 2012-03-28 15:00 codecraft 阅读(217) 评论(0) 推荐(0)

摘要:A:“Application.StartupPath”:获取当前应用程序所在目录的路径,最后不包含“\”; B:“Application.ExecutablePath ”:获取当前应用程序文件的路径,包含文件的名称; C:“AppDomain.CurrentDomain.BaseDirectory”... 阅读全文

posted @ 2011-06-14 09:56 codecraft 阅读(238) 评论(0) 推荐(0)

导航