上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页
  2013年4月3日
摘要: 方法:///<summary>///扩展Linqstring字段排序///</summary>publicstaticclassStringFieldSorting{#regionPrivateexpressiontreehelpersprivatestaticLambdaExpressionGenerateSelector<TEntity>(StringpropertyName,outTyperesultType)whereTEntity:class{PropertyInfoproperty;ExpressionpropertyAccess;varpara 阅读全文
posted @ 2013-04-03 14:45 一路前行 阅读(1993) 评论(0) 推荐(1) 编辑
  2013年4月2日
摘要: 1、Html.ActionLink("linkText","actionName") 第一个参数:要显示的文本,第二个参数:视图名 例如:<%=Html.ActionLink("跳转到About页面", "About");%> → <a href="/Home/About">跳转到About页面</a> 2、Html.ActionLink("linkText","actionName","controlName 阅读全文
posted @ 2013-04-02 09:37 一路前行 阅读(435) 评论(0) 推荐(0) 编辑
  2013年4月1日
摘要: <script src="http://code.jquery.com/jquery-latest.js"></script> 阅读全文
posted @ 2013-04-01 15:25 一路前行 阅读(131) 评论(0) 推荐(0) 编辑
  2013年3月28日
摘要: namespace Razor.Controllers{ public class JSController : Controller { public ActionResult Index() { List<string> FriendsId = new List<string> { "S1", "S2", "S3", "S4" }; ViewBag.FriendsId = FriendsId; return View(); } }}@{ ViewBag.Title = "Ind 阅读全文
posted @ 2013-03-28 18:06 一路前行 阅读(989) 评论(0) 推荐(0) 编辑
摘要: Model类:publicclassDSourceModel{[Required][Display(Name="状态")]publicstringSourceStatus{get;set;}}Controller类:publicclassDataSourceController:Controller{publicActionResultDataSrcAdd(){varselectStatusList=newList<SelectListItem>(){newSelectListItem(){Value="1",Text="启用&qu 阅读全文
posted @ 2013-03-28 18:02 一路前行 阅读(2788) 评论(0) 推荐(0) 编辑
  2013年3月19日
摘要: 如何初始化outlook2010?1、点击Windows系统左下角的“开始”;2、在“运行”或者“搜索”栏中输入:outlook.exe /importprf .\.prf 阅读全文
posted @ 2013-03-19 17:41 一路前行 阅读(2155) 评论(0) 推荐(0) 编辑
摘要: <!DOCTYPEhtml><html><head><metacharset="utf-8"/><metaname="viewport"content="width=device-width"/><title>Jquery.validate.js示例</title>@Styles.Render("~/Content/css")@Styles.Render("~/Content/Site.css","~/ 阅读全文
posted @ 2013-03-19 09:58 一路前行 阅读(973) 评论(0) 推荐(0) 编辑
  2013年3月15日
摘要: 方法://DES默认密钥向量private static byte[]Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF };///<summary>///DES加密字符串///</summary>///<paramname="encryptString">待加密的字符串</param>///<paramname="encryptKey">加密密钥,要求为8位</param>///<returns>加密成功返回加 阅读全文
posted @ 2013-03-15 09:55 一路前行 阅读(6805) 评论(1) 推荐(1) 编辑
  2013年3月10日
摘要: 环境:win7 64位chrome版本:25(貌似20以后的版本都这样)笔记本:thinkpad e520(集成显卡)症状:用chrome浏览淘宝等网页,经常出现浏览器卡死了情况,点击页面中的任何链接均无反应:1、在地址栏中输入chrome://plugins,找到Adobe Flash Player这个插件,能看到旁边括号中写的(2files),点击右边的详细信息,把其中的一个禁用掉,只留一个flash插件,建议禁用chrome自带的flash插件;2、禁用GPU加速,地址栏输入 chrome://flags,找到“对所有网页执行 GPU 合成 Mac, Windows, Linux”项,. 阅读全文
posted @ 2013-03-10 11:03 一路前行 阅读(9295) 评论(0) 推荐(0) 编辑
  2013年3月7日
摘要: css中 ul { list-style:none;margin:0px;} 阅读全文
posted @ 2013-03-07 11:00 一路前行 阅读(311) 评论(0) 推荐(0) 编辑
  2013年3月5日
摘要: 代码:usingSystem;usingSystem.CodeDom.Compiler;usingSystem.Reflection;usingSystem.Text;usingMicrosoft.CSharp;namespaceExpression{///<summary>///计算表达式的类///</summary>publicclassCalculateExpression{///<summary>///接受一个string类型的表达式并计算结果,返回一个object对象,静态方法///</summary>///<paramname= 阅读全文
posted @ 2013-03-05 15:03 一路前行 阅读(5579) 评论(2) 推荐(0) 编辑
  2013年2月26日
摘要: 在默认Visio 2010里面的形状中找不到“联合”、“组合”、“拆分”、“相交”、“剪除”等功能,可进行如下设置:点击visio 左上角的“文件”选项卡,然后点击“选项”,在弹出的“visio 选项”的窗口里面,左边菜单,选取“高级”,然后在右边窗口,下滚至“常规”,然后勾选“以开发人员模式运行”; 阅读全文
posted @ 2013-02-26 16:25 一路前行 阅读(387) 评论(0) 推荐(0) 编辑
  2013年2月19日
摘要: 1、打开注册表,定位到:HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\在下面找到要删除的文件类型,比如“.css”,将其全部删除。2、进入%LOCALAPPDATA%\文件夹,删除图标缓存文件IconCache.db(隐藏文件,需打开隐藏设置)3、重启任务管理器(或重启电脑) 阅读全文
posted @ 2013-02-19 10:19 一路前行 阅读(252) 评论(0) 推荐(0) 编辑
  2013年2月18日
摘要: I usually use the Fusion Log Viewer (Fuslogvw.exefrom a Visual Studio command prompt or Fusion Log Viewer from the start menu) - my standard setup is:Open Fusion Log ViewerClicksettingsCheck theEnable custom log pathcheckboxEnter the location you want logs to get written to, for example,c:\FusionLog 阅读全文
posted @ 2013-02-18 16:37 一路前行 阅读(320) 评论(0) 推荐(0) 编辑
  2013年2月5日
摘要: 在设置中,搜索 margin,找到IDE Settings->Eidtor->Appearance下的Show right margin(configed in Code Style options),将其取消即可。 阅读全文
posted @ 2013-02-05 13:19 一路前行 阅读(484) 评论(0) 推荐(0) 编辑
  2013年2月1日
摘要: //获取地址栏参数functiongetQueryString(name){varreg=newRegExp("(^|&)"+name+"=([^&]*)(&|$)","i");varr=window.location.search.substr(1).match(reg);if(r!=null)returnunescape(r[2]);returnnull;}用法:alert(GetQueryString("参数名1"));alert(GetQueryString("参数名2&q 阅读全文
posted @ 2013-02-01 12:26 一路前行 阅读(208) 评论(0) 推荐(0) 编辑
  2013年1月31日
摘要: .transparentPacket{filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity:0.5;opacity:0.5;} 阅读全文
posted @ 2013-01-31 14:03 一路前行 阅读(290) 评论(0) 推荐(0) 编辑
  2013年1月28日
摘要: background:url(../Images/VinnoImages/rightpanel.jpg);filter:"progid:DXImageTransform.Microsoft.AlphaImageLoader(sizingMethod='scale')";-moz-background-size:100%100%;background-size:100%100%; 阅读全文
posted @ 2013-01-28 15:42 一路前行 阅读(10757) 评论(1) 推荐(1) 编辑
  2013年1月25日
摘要: 把图层移到最上层的快捷键:ctrl+shift+] ; 把图层移到最下层的快捷键:ctrl+shift+[; 阅读全文
posted @ 2013-01-25 10:16 一路前行 阅读(214) 评论(0) 推荐(0) 编辑
  2013年1月23日
摘要: '''Tested:Python3.3.0MicrosoftSQLServer2008'''importtimeimportrandomimportadodbapiimportthreading'''简单定时器类'''classTimer(threading.Thread):def__init__(self,fn,args=(),sleep=0):threading.Thread.__init__(self)self.fn=fnself.args=argsself.interval=sleepsel 阅读全文
posted @ 2013-01-23 15:40 一路前行 阅读(1176) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 33 下一页