会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
咖啡无眠的随笔
博客园
首页
新随笔
联系
订阅
管理
上一页
1
···
13
14
15
16
17
18
19
20
21
下一页
2019年6月18日
JQValidate使用说明
摘要: JQuery Validate使用总结:一、导入js库<script src="../js/jquery.js" type="text/javascript"></script><script src="../js/jquery.validate.js" type="text/javascript"
阅读全文
posted @ 2019-06-18 13:56 咖啡无眠
阅读(2147)
评论(0)
推荐(0)
2019年6月15日
C# 判断当前请求是GET、还是POST ?
摘要: 方法一: HttpContext.Current.Request.RequestType == "POST" //当前请求为:POST 方法二: if(Request.ServerVariables["REQUEST_METHOD"] =="POST")
阅读全文
posted @ 2019-06-15 08:55 咖啡无眠
阅读(1906)
评论(0)
推荐(0)
2019年5月22日
让ASPX页面可以提交html标签代码的配置
摘要: 1:打开web.config文件,在system.web节点里,添加<httpRuntime requestValidationMode="2.0" /> 2:在aspx页面 <%@ Page指令配置里 添加 ValidateRequest="false"
阅读全文
posted @ 2019-05-22 16:50 咖啡无眠
阅读(254)
评论(0)
推荐(0)
将UBB编码转成标准的HTML代码
摘要: /// <summary> /// 将UBB编码转成标准的HTML代码 /// </summary> /// <param name="argString"></param> /// <returns></returns> public static string HtmlDecode(string
阅读全文
posted @ 2019-05-22 14:41 咖啡无眠
阅读(305)
评论(0)
推荐(0)
2019年5月19日
读写App.config配置文件的方法
摘要: 一、配置文件概述: 应用程序配置文件是标准的 XML 文件,XML 标记和属性是区分大小写的。它是可以按需要更改的,开发人员可以使用配置文件来更改设置,而不必重编译应用程序。配置文件的根节点是configuration。我们经常访问的是appSettings,它是由.Net预定义的配置节。我们经常使
阅读全文
posted @ 2019-05-19 15:50 咖啡无眠
阅读(1521)
评论(0)
推荐(0)
2019年5月9日
图片防止盗链
摘要: global.asax文件中写 void Application_BeginRequest(object sender, EventArgs e) { if (Request.RawUrl.Contains("images/")) { if (Request.UrlReferrer == null
阅读全文
posted @ 2019-05-09 16:19 咖啡无眠
阅读(261)
评论(0)
推荐(0)
2019年4月30日
JavaScript父子页面之间的相互调用
摘要: 父页面: <!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title></tit
阅读全文
posted @ 2019-04-30 10:05 咖啡无眠
阅读(726)
评论(0)
推荐(0)
2019年4月28日
把一个集合自定转成json字符串
摘要: List<CityData> listData =new List<CityData>(); //把一个集合自定转成json字符串。 foreach (var city in ctiyTable) { listData.Add(new CityData() { CityId = city.CityI
阅读全文
posted @ 2019-04-28 15:36 咖啡无眠
阅读(918)
评论(0)
推荐(0)
2019年4月18日
分页类与前台和后台的调用方法
摘要: using System;using System.Text; namespace WebDemo.Common{ public class LaomaPager { /// <summary> /// /// </summary> /// <param name="pageSize">一页多少条<
阅读全文
posted @ 2019-04-18 13:45 咖啡无眠
阅读(377)
评论(0)
推荐(0)
2019年4月16日
C#生成验证码类
摘要: using System;using System.Collections.Generic;using System.Drawing;using System.Drawing.Drawing2D;using System.Drawing.Imaging;using System.IO;using S
阅读全文
posted @ 2019-04-16 16:05 咖啡无眠
阅读(1073)
评论(0)
推荐(0)
上一页
1
···
13
14
15
16
17
18
19
20
21
下一页
公告