随笔分类 -  .net

摘要:http://www.cnblogs.com/guomingfeng/http://developer.51cto.com/art/201309/409950_all.htm 阅读全文
posted @ 2015-07-06 11:27 windback 阅读(243) 评论(0) 推荐(0)
摘要:public void SaveConfig(string ConnenctionString, string strKey)//写入动态的数据库配置信息 { XmlDocument doc = new XmlDocument(); //获得配置文件的全路径 //获取App.config文件绝对路径 //string strFileName = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; //这是获... 阅读全文
posted @ 2012-03-07 08:58 windback 阅读(430) 评论(0) 推荐(0)
摘要:GridView技巧篇一2009-08-20 11:021.为对象添加样式(例:遍历所有单元格添加属性) foreach(TableCell tc in e.Row.Cells)//RowDataBound事件内写 { tc.Attributes.Add("style","border-color:Black") //添加边框颜色 }2.为GridView指定顺序编号. if(e.Row.RowIndex != -1)//RowDataBound事件内写 { int id=e.Row.RowIndex+1; //若分页,则int id=GridView1 阅读全文
posted @ 2011-10-11 14:11 windback 阅读(218) 评论(0) 推荐(0)
摘要:<table><tr> <td style="padding:10px;"> <a href="http://www.tec-it.com" title="TEC-IT 条码软件"> <img src="http://www.tec-it.com/pics/banner/web/TEC-IT_Banner_120x42.gif" alt="TEC-IT 条码软件" border="0" /> </a> & 阅读全文
posted @ 2011-08-19 16:48 windback 阅读(500) 评论(1) 推荐(0)
摘要:1、方法一(不可逆加密)publicstringEncryptPassword(stringPasswordString,stringPasswordFormat){stringencryptPassword=null;if(PasswordFormat="SHA1"){encryptPassword=FormsAuthortication.HashPasswordForStoringInConfigFile(PasswordString,"SHA1");}elseif(PasswordFormat="MD5"){encryptPas 阅读全文
posted @ 2011-07-01 16:56 windback 阅读(189) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2011-06-22 16:09 windback 阅读(168) 评论(0) 推荐(0)