![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
.net
文章平均质量分 91
王伍
Good
展开
-
多站点实现Session共享
实现多个asp.net应用程序间的Session共享。 查阅资料N多,多不可行,可能可行的(包括微软官方方法)都需要改动应用程序本身很多...麻烦!很不悦! 最终,找到一个解决方案...不过估计微软会不悦。 大致思路: 采用SqlServer方式存储Session,分析数据库表结构、原理、流程,大致可以得到SqlServer存转载 2012-03-07 17:55:42 · 516 阅读 · 0 评论 -
.Net冒泡排序
int[] scores = new int[] { 3,11,15, 5, 6, 7, 9 }; for (int i = 0; i < scores.Length-1; i++) { for (int j = 0; j < scores.Length-1-i; j++) {原创 2014-06-20 14:49:31 · 1758 阅读 · 0 评论 -
文章内容中关键字替换为锚链接
1:同一关键字只替换一次2:解决关键字之间相互包含重复替换的问题//调用 #region 处理锚文本 List keys = new List(); DataTable dtKeyWord = 查询到的关键字; for (int i = 0; i < dtKeyWord.Rows原创 2013-07-31 17:23:49 · 984 阅读 · 0 评论 -
对webconfig文件中的数据库连接字符串加密,解密以及常见问题解决方案[打不开 RSA 密钥容器]
打开dos命令窗口: [加密] 在命令窗口输入 C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_regiis.exe -pef "connectionStrings" "E:\WANGZHAOWU\ENKJ_OA" 然后确定即可完成对web.config的加密。 [原创 2012-11-27 15:08:46 · 2074 阅读 · 0 评论 -
onfocus="this.blur()" 文本框不可点击输入
onfocus="this.blur()"原创 2012-10-15 17:25:46 · 813 阅读 · 0 评论 -
简单高级搜索页面的简单实现,包括数据控件循环嵌套,DataTable动态生成数据添加等
public partial class _Default : System.Web.UI.Page { DBHelper db = new DBHelper(); protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack)原创 2012-07-20 14:21:59 · 978 阅读 · 0 评论 -
Jquery获取服务器端控件DropDownList当前选中的Text,juuery的Post用法,跟随鼠标浮动层
Jquery: $(function() { $(".shName").hover(function() { var name = $(this).text() var year = $("#DpYear").val(); var mo = $("#DpTime").val();原创 2012-07-19 11:03:58 · 859 阅读 · 0 评论 -
WinForm把图片打成二进制,并把二进制转化为图片
写:FileStream fs = new FileStream("图片路径", FileMode.Open);Byte[] imagebytes = new byte[fs.Length]; //二进制转换BinaryReader br = new BinaryReader(fs);imagebytes = br.ReadBytes(Convert.ToInt32(原创 2012-07-19 11:20:33 · 2485 阅读 · 0 评论 -
Jquery刷新页面
下面介绍全页面刷新方法:有时候可能会用到window.location.reload()刷新当前页面.parent.location.reload()刷新父亲对象(用于框架)opener.location.reload()刷新父窗口对象(用于单开窗口)top.location.reload()刷新最顶端对象(用于多开窗口)下面再介绍一些javascript基转载 2012-06-29 15:24:09 · 840 阅读 · 0 评论 -
Pines Notify jQuery Plugin:好看易用的jQuery消息提示插件
插件地址:http://sciactive.github.com/pnotify/Pines Notify jQuery Plugin:好看易用的jQuery消息提示插件2010-07-03 8:42转自:http://devwing.com/?p=67译自:http://pines.svn.sourceforge.net/viewvc/转载 2012-05-31 09:27:57 · 1099 阅读 · 0 评论 -
asp.net错误页小记
Exception ex = HttpContext.Current.Server.GetLastError(); File.AppendAllText(Server.MapPath("d:/error.log"), ex.Message + ex.StackTrace);以上是原创 2014-06-20 21:25:12 · 488 阅读 · 0 评论