MVP? MVP!

i love C#
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2008年11月19日

摘要: public string IsAuthenticated(string UserID, string Password) { string _path = "LDAP://192.168.10.71/DC=wwsp,DC=com";//"LDAP://172.75.200.1/DC=名字,DC=com,DC=cn"; string _fi... 阅读全文

posted @ 2008-11-19 10:48 renhb 阅读(425) 评论(2) 推荐(0)

2008年10月23日

摘要: private string getPostBackControlName() { Control control = null; string ctrlname = Page.Request.Params["__EVENTTARGET"]; if (ctrlname != null && ctrlname != String.Empty) ... 阅读全文

posted @ 2008-10-23 16:10 renhb 阅读(340) 评论(0) 推荐(0)

2008年9月24日

摘要: List aa = new List(new string[] { "a", "b", "c", "d" }); List bb = new List(new string[] { "a", "c" });目的:判断一个数组中的每个值是否都存在于另一个数组中.例: bool ret=bb.TrueForAll(delegate(string s) { return aa.Cont... 阅读全文

posted @ 2008-09-24 16:37 renhb 阅读(521) 评论(2) 推荐(0)

2008年9月20日

摘要: delegate\event的方法:类X:using System;using System.Collections.Generic;using System.Windows.Forms;using System.Text;namespace WindowsFormsApplication1{ public class ClassX { public delegate v... 阅读全文

posted @ 2008-09-20 12:01 renhb 阅读(170) 评论(0) 推荐(0)

2008年9月18日

摘要: System.Diagnostics.Process.Start(@"D:\晓娜\Storm.exe", @"D:\晓娜\111.mp3"); 阅读全文

posted @ 2008-09-18 10:53 renhb 阅读(570) 评论(0) 推荐(0)

摘要: Process p = new Process(); p.StartInfo.FileName = @"C:\windows\system32\command.com"; p.StartInfo.UseShellExecute = false; p.StartInfo.RedirectStandardInput = true; ... 阅读全文

posted @ 2008-09-18 10:50 renhb 阅读(285) 评论(0) 推荐(0)

2008年9月4日

摘要: using System;using System.Drawing;using System.Web.UI;using Dundas.Charting.WebControl; namespace Web{ public partial class WebForm1 : Page { private void Page_Load(object sender, EventA... 阅读全文

posted @ 2008-09-04 15:37 renhb 阅读(356) 评论(0) 推荐(0)

2008年9月3日

摘要: foreach (SortType s in System.Enum.GetValues(typeof(SortType))) { this.sort.Items.Add(new ListItem(s.ToString(), ((int)s).ToString())); } 阅读全文

posted @ 2008-09-03 17:19 renhb 阅读(176) 评论(0) 推荐(0)

2008年8月28日

摘要: // using System.Diagnostics;private string appName = "calc.exe";/// /// 1. 启动外部程序,不等待其退出/// private void button1_Click(object sender, EventArgs e){Process.Start(appName);MessageBox.Show(String.Format(... 阅读全文

posted @ 2008-08-28 13:18 renhb 阅读(403) 评论(0) 推荐(0)

2008年8月25日

摘要: //读取连接当前数据库的进程 strSQL = "select spid from master..sysprocesses where dbid=db_id('" + strDBName + "')"; SqlCommand mycmd = new SqlCommand(strSQL, TmpConn); ... 阅读全文

posted @ 2008-08-25 10:26 renhb 阅读(495) 评论(1) 推荐(0)