随笔分类 - .net
摘要:http://www.cnblogs.com/guomingfeng/http://developer.51cto.com/art/201309/409950_all.htm
阅读全文
摘要:public void SaveConfig(string ConnenctionString, string strKey)//写入动态的数据库配置信息 { XmlDocument doc = new XmlDocument(); //获得配置文件的全路径 //获取App.config文件绝对路径 //string strFileName = System.AppDomain.CurrentDomain.SetupInformation.ApplicationBase; //这是获...
阅读全文
摘要: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
阅读全文
摘要:<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> &
阅读全文
摘要:1、方法一(不可逆加密)publicstringEncryptPassword(stringPasswordString,stringPasswordFormat){stringencryptPassword=null;if(PasswordFormat="SHA1"){encryptPassword=FormsAuthortication.HashPasswordForStoringInConfigFile(PasswordString,"SHA1");}elseif(PasswordFormat="MD5"){encryptPas
阅读全文

浙公网安备 33010602011771号