bufferSoft

善积跬步方能至千里,领先一步方能立潮头

导航

2007年7月29日

得到ip

摘要: public string GetClientIP() { string result = HttpContext.Current.Request.ServerVariables["HTTP_X_FORWARDED_FOR"]; if (null == result || result == String.Empty) { ... 阅读全文

posted @ 2007-07-29 16:27 qyfan 阅读(161) 评论(0) 推荐(0) 编辑

md5加密

摘要: public static String getmd5(string str) { byte[] data = System.Text.Encoding.Unicode.GetBytes(str); System.Security.Cryptography.MD5 md5 = new System.Security.Cryptography.MD5CryptoS... 阅读全文

posted @ 2007-07-29 16:03 qyfan 阅读(103) 评论(0) 推荐(0) 编辑

识别码

摘要: using System;using System.Data;using System.Configuration;using System.Collections;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.We... 阅读全文

posted @ 2007-07-29 16:02 qyfan 阅读(92) 评论(0) 推荐(0) 编辑

获取当前行

摘要: for (int i = 0; i<=GridView1.Rows.Count - 1; i++) { DataRowView dv = ds.Tables[0].DefaultView[i]; lbl = (Label)GridView1.Rows[i].FindControl("Label1"); ... 阅读全文

posted @ 2007-07-29 16:00 qyfan 阅读(270) 评论(0) 推荐(0) 编辑