Sample: ServiceFabric + Orleans + Asp.net Core : Asp.net Core 142 samples for ASP.NET Core 2.1 fundamentals ServiceFabric microservices-dotnetcore-docker-servicefabric ServiceFabricSample ServiceFabricSamples ServiceFabric Sample ServiceFabricContrib…
asp.net 获取网页Document时常会用到 edited by:曹永思-博客园 1.获取某个class的div内的标签 获取<div class="imgList2">****</div>内的标签 方法一: string g = " <div.*?class=\"imgList2\">(?<html>[\\s\\S]*?)</div>"; Regex reg = new Rege…
=======================================================================Property Get 语句在 Class 块中,声明构成用来取得(返回)的值的属性过程的主体的名称.参数和代码.[Public [Default]| Private] Property Get name [(arglist)][statements][[Set] name = expression][Exit Property][statements]…
1.添加权限常量 打开文件AppPermissions.cs [..\MyCompanyName.AbpZeroTemplate.Core\Authorization\AppPermissions.cs] 在末尾添加如下常量: //分类管理权限 public const string Pages_Category = "Pages.Category"; public const string Pages_Category_Create = "Pages.Category.Cr…
<style type="text/css">    .tab{border-collapse:collapse; margin:0 auto;}    .tab th{ border:#000 solid 1px; line-height:24px;}    .tab td{border:#000 solid 1px; line-height:18px;}    .tab td.no{color:#f00;}    </style> <table cla…
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.Script.Serialization; //导入解析Json的类 public partial class _Default : System.Web.UI.Page { protec…
1.打开Index视图 页面中添加一个按钮,代码如下: <div class="row margin-bottom-5"> <div class="col-xs-6"> <div class="page-head"> <div class="page-title"> <h1> <span>分类</span> <small>@L(&q…
虽然已经可以添加商品分类,但还需进行优化,比如:用户是否输入.输入字符串是否有格式限制等等. 打开添加分类按钮,名称不输入任何字符,直接保存,会发现列表添加一条空记录.在实际项目中,这是不允许出现的事情,我必须对分类名称进行必填限制,但用户没填写时,给予提示信息. 数据验证就涉及客户端和服务端,建议两端都实现,保存安全性.   客户端验证 首先,来实现客户端验证 1.打开视图_CreateModal.cshtml [..\MyCompanyName.AbpZeroTemplate.Web\Are…
1.创建实体类 参考:http://www.cnblogs.com/farb/p/4923137.html 在Core(领域层)项目下新建一个目录Entities,在此目录下新建一个Category类,代码如下: public class Category:Entity { /// <summary> /// 分类名称 /// </summary> public string Name { get; set; } } 2.DbContext 参考:http://www.cnblog…
以一个商品分类管理功能来编写,代码尽量简单易懂.从一个实体开始,一直到权限控制,由浅到深一步步对功能进行完善. 1.打开语言文件 [..\MyCompanyName.AbpZeroTemplate.Core\Localization\AbpZeroTemplate\AbpZeroTemplate-zh-CN.xml] 添加2个键值对,如下: <text name="Shop" value="商店" /> <text name="Categ…