- 博客(52)
- 资源 (1)
- 收藏
- 关注
原创 Python 批量修改文件名(删除或替换某文件名里的字符串)
import reimport ospath = "E:\B" #输入你要更改文件的目录originalname = '123' #123是要查找文件名里包含123的文件replacename = '321' #321是要被替换的字符串,如果就是删除originalname,那么replacename = ''就可以def main1(path1): files = ...
2019-08-26 05:42:07
9784
9
原创 Python 批量修改文件HASH码
import reimport ospath = "E:\Bai" #文件夹目录#以a的形式打开文件,并写入c(随便任何字符串都可以,不一定是'c'),一定记得关闭文件,要不会报错。def fileAppend(filename): myfile = open(filename,'a') myfile.write("c") myfile.close#找到某...
2019-08-26 05:33:09
700
原创 获得文件HASH码(MD5,SHA1,SHA256)
首先CMD,进入文件所在文件夹,输入:certutil -hashfile nengli.mkv MD5certutil -hashfile nengli.mkvSHA1certutil -hashfile nengli.mkvSHA256
2019-08-26 05:10:47
1823
原创 web站点递归绑定数据库的站点地图(SiteMapPath控件与Web.sitemap结合)
1. 在网站根目录建立一个Web.sitemap文件2.建立一个带有BUTTON的页面 3 CS页面代码Lion.BLL.Base_Menu bll = new Lion.BLL.Base_Menu(); string strPathName = ""; protected void Page_Load(object sender, EventArgs e)
2013-12-02 17:40:08
1129
原创 .net 获取本网站域名 以及得到字符串里包含的域名
Uri abc = new Uri(“http://www.163.com/20130211/add.php”); //这个编辑器不让写入英文双引号。abc.Host的值就是www.163.com; //得到字符串的域名 HttpContext.Current.Request.Url.Host 得到本网站的域名
2013-11-19 11:33:33
3280
转载 .net导出EXCEL
****如侵犯某人的著作权 请及时与我联系删除QQ:1119126886第一种:把页面的GRIDVIEW直接打印,列表内无不需要的数据前台:@ Page Language="C#" AutoEventWireup="true" CodeFile="GridviewExportExcel.aspx.cs" Inherits="GridviewExcel" EnableEv
2013-11-08 15:29:25
980
原创 在panel里添加HTML标签
TMD 就这三行代码 问谁谁不会!!!最后还是我自己搞出来的。以后都给我记住了~ 用这段代码之前先喊三声:峰哥万岁!再用Literal br = new Literal(); br.Text = "";Panel1.Controls.Add(br);
2013-10-28 10:14:12
5435
4
原创 用于运行 ASP.NET 的进程帐户必须具有对 IIS 元数据库(如 IIS://servername/W3SVC)的读访问权。有关如何修改元数据库权限的信息,请参见...
当我装完IIS 运行ASP.NET我得网站,发现如下错误: 用于运行 ASP.NET 的进程帐户必须具有对 IIS 元数据库(如 IIS://servername/W3SVC)的读访问权。有关如何修改元数据库权限的信息,请参见http://support.microsoft.com/?kbid=267904。 然后上网去查相关文章,但大部分都是过时的,比如:执行 C:\
2012-08-28 08:55:50
3922
转载 .NET 3.5新特性
Visual Studio 2008和.NET 3.5是建立在.NET2.0核心的基础之上,C# 3.0新语言特性在.NET2.0基础上进行了改进,这些改进的功能可以大大简化我们编写程序。在此为了自己学习记录下来,并与大家分享.NET 3.5的新特性包括:自动属性(Auto-Implemented Properties)隐含类型局部变量(Local Variable T
2012-03-08 23:53:04
352
原创 ASP 两个小的存储过程
(无参数) sql:create procedure dbo.getuserlistasset nocount onbegin select * from t_billendgo serverName="192.168.0.7"dbName="play_data1"saName="sa"saPass="1"dim mycomm,myrst
2012-01-14 17:17:49
338
原创 sql 输出表结构
select * into tablex from department where 1=1Select a.name AS 字段名, b.name AS 类型,a.length as 占用字节数,(case when a.isnullable=1 then '√' else '' end)as 是否为空,(g.[value]) as 说明 FROM syscolumns a INNER JO
2011-11-21 17:53:09
787
原创 Gridview几种点击获取值的方式(赠送一个REPEATER的)
1.多按钮法:' CommandName="bianji" ImageUrl="images/Telent079.gif" /> protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) { string com = e
2011-11-19 14:28:08
604
原创 datatable加载
protected void Page_Load(object sender, EventArgs e) { string path1 = Request.PhysicalApplicationPath;
2011-10-13 15:23:40
316
原创 C#委托经典小例子
public delegate void MultiDelegate(string name);public void AgentDemo1(string str){Console.WriteLine(str + “this is AgentDemo1\n”);}
2011-09-28 10:56:20
420
原创 简单方法导出EXCLE
using System;using System.Collections;using System.Collections.Generic;using System.ComponentModel;using System.Configuration;usin
2011-09-23 15:50:40
316
原创 vb 用HASHTABLE批量增删改
Public Sub FGNarashiShinseshaUpdate(ByVal LaParam As List(Of Hashtable)) Dim LtDb As New Kobetsu.Common.DBAccess Try
2011-08-31 14:36:29
654
原创 vb新搜索
dim ds as dataset=new dataset() dim i as integer dim conn as new oledbconnection() dim ad as oledbdataadapter Dim a() as string a=Split(went
2011-08-20 13:11:20
369
原创 VB update
Imports System Imports System.Data Imports System.Configuration Imports System.Collections Imports System.Web Imports System.Web.S
2011-08-20 00:08:06
1116
原创 VB查询
dim leixing,didian,szsq,zhuangxiu,chaoxiang,hot,riqi,jiage1,jiage2,mianji1,mianji2,louceng1,louceng2,huxing,huxing1,xqmc,id,bigclassname
2011-08-19 20:28:44
783
原创 留言
using System;using System.Collections.Generic;using System.Text;using ZeroStudio.DBUtility;using System.Data;namespace ZeroStudio.
2011-08-15 22:07:41
460
原创 新闻
using System;using System.Collections.Generic;using System.Text;using System.Data;using ZeroStudio.DBUtility;namespace ZeroStudio.
2011-08-15 22:05:01
550
原创 产品
using System;using System.Collections.Generic;using System.Linq;using System.Text;using DBUtility;using System.Data;namespace DA
2011-08-15 22:01:53
477
原创 WEB系统信息
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Data;using Model;using DBUtility;
2011-08-15 21:53:25
360
原创 WEB底层调用
using System;using System.Collections;using System.Collections.Specialized;using System.Data;using System.Data.OleDb;using System.
2011-08-15 21:50:54
439
原创 绑定列表
#region 文章查询NO.56 /// /// 文章查询NO.56 /// /// 起始页索引,从0开始 /// 每页显示数量 /// 总页数 /// 信息总数 //
2011-07-13 13:02:12
318
原创 发布方圆页面
<br /><%@ Page Language="C#" AutoEventWireup="true" enableEventValidation= "false " CodeFile="entsecondhouseinput.aspx.cs" Inherits="webclient_entsecondhouseinput" %><br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR
2011-05-26 15:04:00
1403
原创 发布房源页CS文件
<br />/// <summary><br />/// 企业客户二手房数据录入,修改<br />/// <para><br />/// 文件名: webclient_entsecondhouseinput<br />/// </para><br />/// <para><br />/// 作者:张枫<br />/// </para><br />/// <para><br />/// 日期:2010/8/1<br />/// </para><br />/// <para><br />/// 版本:1.00
2011-05-26 15:01:00
1133
原创 清除所有缓存
<br />protected void RemoveAllCache()<br /> {<br /> System.Web.Caching.Cache _cache = HttpRuntime.Cache;<br /> IDictionaryEnumerator CacheEnum = _cache.GetEnumerator();<br /> ArrayList al = new ArrayList();<br /> while (Cache
2011-05-14 09:38:00
384
原创 取GRIDVIEW上radiobutton的状态
<br />protected void ImageButton2_Click(object sender, ImageClickEventArgs e)<br /> {<br /> //使用模版列里加RadioButton<br /> // Label1.Text = "";<br /> foreach (GridViewRow gvr in gdview_AdvMemberServicesList.Rows)<br /> {<br />
2011-04-29 15:58:00
387
原创 sql 两个日期类型的日期查询
<br />between cast('2009-7-27' as datetime) and cast('2011-7-27' as datetime )
2011-04-15 15:21:00
475
原创 使用ILIST方法赋值
<br /> IList<Model.StaffInfoInfo> ilst=bsi.GetUser(id) ;<br /> //for (i = 0; i < ilst.Count; i++)<br /> //{<br /> // if (ilst[i].StaffType == 7)<br /> // {<br /> // lnk0=ilst[i].LoginName;<br /> //
2011-04-14 13:28:00
2916
原创 接到字符串转化成datatable
<br />public DataTable GetPicLst(string strImglst)<br /> {<br /> DataTable dt = new DataTable();<br /> dt.Columns.Add("pic", Type.GetType("System.String"));<br /> if (!String.IsNullOrEmpty(strImglst))<br /> {<br />
2011-04-06 10:16:00
662
原创 解决有外框的TABLE内包含radiobuttonlist也出现外框的问题
<br />外框: .tdn td<br /> {<br /> border:solid 1px #BCD2A3; <br /> }<br />内框:<br /> .tdn2 td<br /> {<br /> border:0px;<br /> font-size:15px;<br /> width:80px;<br /> }
2011-03-28 13:48:00
390
原创 GRIDVIEW绑定的有关代码
<br />绑定删除控件IMAGEBUTTON:<br /> <asp:GridView ID="GridView1" runat="server" BorderColor="#BCD2A3" <br /> BorderWidth="1px" CellPadding="4" Width="966px" <br /> AutoGenerateColumns="False" HeaderStyle-Height="30px" <br
2011-03-18 14:46:00
324
原创 用CS查找页面上的K开头的DIV控件并且display=NONE
<br /><br /> if (add != null)<br /> {<br /> for(int i=0;i<add[2].Length; i++ )<br /> {<br /> if (add[2].Substring(i, 1) == "0")<br /> {<br /> string idnum = "k" + (i + 1);
2011-03-17 16:50:00
347
原创 datalist根据隐藏域的值改变背景与JS高度控制与JS自适应高度
protected void dlmanage_ItemDataBound(object sender, DataListItemEventArgs e) { HiddenField hf = (HiddenField)e.Item.Controls[1]; HtmlTable tb = (HtmlTable)e.Item.Controls[3]; if (hf.Value == "0") { tb.Style.Add("
2011-02-16 13:28:00
1649
原创 datalist和gridview遍历还有hyperlink
foreach(DataListItem i in dlhouse.Items) { HyperLink lnktitle = (HyperLink)i.FindControl("lnktitle"); lnktitle.NavigateUrl = "../../SecondhandHouseOfAskRent.aspx?id=" + lnktitle.NavigateUrl.ConvertToEncryptString(); }
2011-02-16 11:53:00
327
原创 cnzz代码
<br /><div style="display:none"><script type="text/javascript" src="http://s102.cnzz.com/stat.php?id=1604629&web_id=1604629&show=pic" language="JavaScript" charset="gb2312"></script></div>
2011-02-16 11:45:00
614
原创 设定自动换行(ie 火狐都行)
<br />.style1<br /> {<br /> width: 33px;<br /> word-break:break-all;<br /> word-wrap: break-word;<br /> }<br /> <table style="width: 90%; height:160px; overflow:hidden; table-layout:fixed"><br />
2010-11-08 14:39:00
288
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人