摘要: 首先,确保安装了如下运行环境支持: 下载地址 https://dotnet.microsoft.com/download/dotnet-core/3.1 安装完成后在IIS主页 - 模块 里面应该会有 AspNetCoreModuleV2 接下来,在IIS给当前项目新建一个网站,并将该网站的应用程序 阅读全文
posted @ 2020-12-20 14:48 elycir 阅读(425) 评论(0) 推荐(0) 编辑
摘要: 主要通过IHttpModule的Init事件及缓存的过期回调事件来实现定时执行任务。自定义HttpModule:using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace TimingTasks.Controllers{ public class HttpModule:IHttpModule { public void Init(HttpApplication context) { var tasker = ne... 阅读全文
posted @ 2012-08-09 11:20 elycir 阅读(900) 评论(0) 推荐(0) 编辑
摘要: 效果演示:html代码:<!DOCTYPE html><html><head> <meta charset="utf-8" /> <title>省市区联动</title> <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js" type="text/javascript"></script> <script src="/Scripts/s 阅读全文
posted @ 2012-06-23 22:45 elycir 阅读(2329) 评论(1) 推荐(2) 编辑
摘要: 默认的白色其实看久了蛮伤眼的,个人习惯把背景色换成较为柔和的色彩。一些色彩参考:苹果绿 RGB 204,255,204 #CCFFCC 杏仁黄 rgb 250 249 222 #FAF9DE 青草绿 rgb 227 237 205 #E3EDCD 海天蓝 rgb 220 226 241 #DCE2F1 豆沙绿 RGB 199 237 204 #C7EDCC 灰色 RGB235,235,228 #EBEBE4 参考:http://blog.csdn.net/... 阅读全文
posted @ 2012-06-23 21:17 elycir 阅读(790) 评论(0) 推荐(0) 编辑
摘要: 可以用string.Format实现补零: string.Format("{0:00}", 3); 输出:03 更多可以参考:http://www.cnblogs.com/tuyile006/archive/2006/07/13/449884.aspx 阅读全文
posted @ 2012-03-22 20:40 elycir 阅读(115) 评论(0) 推荐(0) 编辑
摘要: 在程序中使用表单验证需要以下步骤:1. 在web.config文件中配置表单验证。将web.config文件中的<authentication/>配置节的mode特性设为Forms就可以使用表单验证了:<authentication mode="Forms"> <forms name="AuthCookieName" loginUrl="login.aspx" timeout="30" slidingExpiration="false" defaultUrl=&qu 阅读全文
posted @ 2011-10-27 22:04 elycir 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 下载链接如下:MVC 3安装包:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=d2928bc1-f48c-4e95-a064-2a455a22c8f6&displaylang=zh-cnVS工具更新包:http://www.microsoft.com/downloads/zh-cn/details.aspx?familyid=82cbd599-d29a-43e3-b78b-0f863d22811a&displaylang=zh-cn注:并不需要安装vs2010的sp1。下完之后所需文件如下:需要说明 阅读全文
posted @ 2011-09-23 16:59 elycir 阅读(12091) 评论(13) 推荐(2) 编辑
摘要: Chrome会屏蔽掉一些端口的访问,比如6666,以下是解决方法。找到Chrome的快捷方式,右键-属性-目标,在chrome.exe后面添加指定允许的端口号:--explicitly-allowed-ports=6666,结果如下:C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe --explicitly-allowed-ports=6666,然后重新启动Chrome即可。 阅读全文
posted @ 2011-09-20 15:46 elycir 阅读(10068) 评论(1) 推荐(0) 编辑
摘要: CSS: <style type="text/css"> body { line-height: 1.5; font: 14px/1.5 arial,serif; color: #AAA; } .notification { border: 3px solid #D55B5B; background-color: #FFCDCD; padding: 5px; } ... 阅读全文
posted @ 2011-09-06 14:28 elycir 阅读(1869) 评论(2) 推荐(0) 编辑
摘要: XML格式如下:<?xml version="1.0" encoding="utf-8" ?><channel> <area id="1"> <city name="珠海" /> <city name="深圳" /> <city name="中山" /> </area> <area id="2"> <city name="成都" /&g 阅读全文
posted @ 2011-08-21 18:30 elycir 阅读(516) 评论(0) 推荐(0) 编辑