会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
奋斗
努力奋斗,三年之内买上山寨车,五年之内买上山寨房,十年之内娶上山寨夫人
博客园
首页
新随笔
新文章
联系
管理
订阅
上一页
1
···
38
39
40
41
42
43
44
45
46
···
50
下一页
2011年11月4日
asp.net截取指定字符后面的字符串
摘要: string str="/baedeker/baeline.aspx?rid=834";str=str.SubString(str.IndexOf("=")+1,str.Length);
阅读全文
posted @ 2011-11-04 09:55 纳米程序员
阅读(901)
评论(0)
推荐(0)
2011年11月3日
response输出alert到客户端出现空白 解决方法
摘要: Page.RegisterStartupScript("startscript", "<script>alert('123!');</script>");
阅读全文
posted @ 2011-11-03 14:41 纳米程序员
阅读(336)
评论(0)
推荐(0)
2011年11月2日
类型“System.Web.UI.UpdatePanel”不具有名为“DropDownList”的公共属性,解决方法
摘要: 类型“system.web.ui.updatepanel” 不具有名为“***”的公共属性,其实原因很简单。就是少了一个<ContentTemplate></ContentTemplate>“<asp:UpdatePanel ID="UpdatePanel1" runat="server"><asp:DropDownList ID="ddlUsed" runat="server"> <asp:ListItem Text="百度" Value=
阅读全文
posted @ 2011-11-02 09:10 纳米程序员
阅读(3992)
评论(0)
推荐(1)
2011年11月1日
AutoPostBack 与UpdatePanel的局部刷新
摘要: 前台代码:<form id="form1" runat="server"> <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager> <div><asp:DropDownList ID="DropDownList1" runat="server" AutoPostBack="True" onselectedin
阅读全文
posted @ 2011-11-01 17:08 纳米程序员
阅读(2396)
评论(0)
推荐(0)
UpdatePane刷新和Ajax控件Timer的问题,刷新没有效果,解决方法
摘要: 拉了一个ScriptManager 在拉UpdatePane 在UpdatePane里面放一个Ajax控件Timer,设置时间间隔1000,在放个Label1 ,页面代码为:<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %><%@ Register Assembly="System.Web.Extensions, Version=1.0.61025.
阅读全文
posted @ 2011-11-01 16:58 纳米程序员
阅读(843)
评论(0)
推荐(0)
asp.net 各种格式的时间格式
摘要: //2011年10月31日 this.Label6.Text = System.DateTime.Now.ToString("D"); //2011-10-31 this.Label7.Text = System.DateTime.Now.ToString("d"); //2011年10月31日 16:10:15 this.Label8.Text = System.DateTime.Now.ToString("F"); //2011年10月31日 16:10 this.Label9.Text = System.DateTime.Now
阅读全文
posted @ 2011-11-01 16:43 纳米程序员
阅读(234)
评论(0)
推荐(0)
2011年10月31日
asp.net网页代码清理文件夹下面的数据
摘要: 代码如下:View Code 1 protected void btnDelete(object sender, EventArgs e) 2 { 3 4 try 5 { 6 System.IO.DirectoryInfo path = new System.IO.DirectoryInfo(Server.MapPath("/Test")); 7 deletefile(path); 8 Page.RegisterSt...
阅读全文
posted @ 2011-10-31 09:17 纳米程序员
阅读(309)
评论(0)
推荐(0)
2011年10月21日
好玩的批处理命令
摘要: 1,注册表扫描@echo offtitle 注册表扫描中...mode con cols=50 lines=10setlocal enabledelayedexpansion>%temp%\reglist.txt echo %DATE%%time% 注册表扫描报告for /f "tokens=3 delims=\" %%i in ('reg query HKLM\SOFTWARE') do (echo 当前扫描信息: HKLM\SOFTWARE\%%i>>%temp%\reglist.txt echo ===================
阅读全文
posted @ 2011-10-21 14:54 纳米程序员
阅读(5120)
评论(0)
推荐(0)
2011年10月18日
Web.config 加密与解密
摘要: 打开.Net Framework附带的SDK命令提示符。加密命令:aspnet_regiis -pe "connectionStrings" -app "/encrypttest" -pe开关用来指定web.config中需要加密的节(Web.Config文件中的connectionStrings配置节)。 -app开关用来指定IIS里面的虚拟目录,如果为根目录网站,为"/".解密命令:aspnet_regiis -pd "connectionStrings" -app "/encrypttest&quo
阅读全文
posted @ 2011-10-18 11:30 纳米程序员
阅读(402)
评论(0)
推荐(0)
2011年10月12日
ACCESS模糊查询
摘要: ACCESS模糊查询出现的问题,开发中需要注意!在SQL Server中模糊查询通常是这样的Select * from articleTable where authorName like '%jacky%'但是在Access中用这条语句执行的时候竟然发现查不出结果,怎么可能呢?后来查了下资料,发现问题如下:要进行模糊查找,则必须使用通配符,ACCESS库的通配符和SQL SERVER的通配符不一样。ACCESS库的通配符为:* 与任何个数的字符匹配。? 与任何单个字母的字符匹配在SQL Server中的通配符为:% 与任何个数的字符匹配- 与单个字符匹配正确写法应是:在C#里
阅读全文
posted @ 2011-10-12 09:09 纳米程序员
阅读(322)
评论(0)
推荐(0)
上一页
1
···
38
39
40
41
42
43
44
45
46
···
50
下一页
公告