自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(51)
  • 资源 (6)
  • 收藏
  • 关注

转载 C# 写CSV文件字符串前面0不显示的解决办法

using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;namespace CsvTest{    class Program    {        static void Ma...

2018-07-27 10:12:42 2353

转载 MVC基架生成的 Details视图

@model MyMusicStore.Models.Album@{    ViewBag.Title = "Details";}<h2>Details</h2><div>    <h4>Album</h4>    <hr />    <dl class="dl-horizon

2018-07-25 23:03:56 258

转载 MVC基架生成的Edit视图

@model MyMusicStore.Models.Album@{    ViewBag.Title = "Edit";}<h2>Edit</h2>@using (Html.BeginForm()){    @Html.AntiForgeryToken()        <div class="form-horizontal">  ...

2018-07-25 23:02:33 132

转载 MVC基架生成的Detele视图

@model MyMusicStore.Models.Album@{    ViewBag.Title = "Delete";}<h2>Delete</h2><h3>Are you sure you want to delete this?</h3><div>    <h4>Album</

2018-07-25 23:00:08 113

转载 MVC基架生成的Create视图

@model MyMusicStore.Models.Album@{    ViewBag.Title = "Create";}<h2>Create</h2>@using (Html.BeginForm()) {    @Html.AntiForgeryToken()        <div class="form-horizontal"&g...

2018-07-25 22:56:26 343

转载 MVC基架生成的Index视图

@model IEnumerable<MyMusicStore.Models.Album>@{    ViewBag.Title = "Index";}<h2>Index</h2><p>    @Html.ActionLink("Create New", "Create")</p>&amp

2018-07-25 22:54:21 224

转载 MVC 用基架创建Controller,通过数据库初始化器生成并播种数据库

1 创建MVC应用程序2 在Model里面创建实体类using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace MyMusicStore.Models{    public class Album    {        public virtual ...

2018-07-25 22:32:10 491

转载 C# IDisposable接口的使用

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;using System.Data;namespace DisposeDemo{    class P...

2018-07-16 16:40:06 481

转载 c#中的GetUpperBound,GetLowerBound方法

今天使用数组的时候,用到了几个数组的属性,总结如下:Array的Rank 属性:语法:public int Rank { get; } 得到Array的秩(维数)。Array的GetUpperBound 方法:语法:public int GetUpperBound(int dimension) 用于获取 Array 的指定维度的上限。Array的GetLowerBound方法:语法:public ...

2018-07-16 15:49:27 2617

转载 在WPF应用程序中利用IEditableObject接口实现可撤销编辑的对象

Model:Employeeusing System.ComponentModel;namespace WpfApplicationBindingSample.Models{ /// <summary> /// 业务实体(Business Entity) /// </summary> class Employee : INotifyPr...

2018-07-16 14:49:38 352

转载 WPF LayoutTransform -改变布局

LayoutTransform会影响布局,让grid显示分割线时候,可以看出<Window x:Class="wpf180709.Window1"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx...

2018-07-11 13:03:01 1131

转载 WPF 代码实现动画

<Window x:Class="wpf180709.Window2"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window2" Hei...

2018-07-11 13:02:51 1141

转载 MVC HttpUtility.HtmlEncode是如何编码的

using System;using System.Collections.Generic;using System.IO;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Web;namespace HttpUtilityDemo{    class Program    {        ...

2018-07-11 13:02:42 866

转载 WPF RenderTransform的使用

呈现变形的元素并没有改变位置,只是呈现在不同的位置而已好处:为了效率,如果改变位置的话,需要重新测量,布局<Window x:Class="wpf180709.MainWindow"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.m...

2018-07-09 09:49:58 2344

转载 WPF 附加属性的使用

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;namespace Wpf180706{    public class School:DependencyObject    {   ...

2018-07-09 09:46:10 1006

转载 WPF 用代码增加路由事件的方法

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Controls.Primitiv...

2018-07-09 09:46:00 393

转载 WPF CommandParameter的使用

<Window x:Class="Wpf180706.Window5"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window5" Hei...

2018-07-09 09:45:52 7154

转载 WPF 通过CommandBinding捕获命令

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System...

2018-07-09 09:45:43 1881

转载 WPF 使用Propereties:Resources.resx里面的资源

<Window x:Class="Wpf180706.Window7"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:prop="clr-nam...

2018-07-09 09:45:34 3029 1

转载 WPF 柱状图显示数据

<Window x:Class="Wpf180706.Window9"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window9" Hei...

2018-07-09 09:45:19 793

转载 WPF 寻找控件模板中的元素

<Window x:Class="Wpf180706.Window10"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window10" H...

2018-07-09 09:45:08 723

转载 WPF 寻找数据模板中的元素

<Window x:Class="Wpf180706.Window11"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:local="clr-n...

2018-07-09 09:44:56 532

转载 WPF VisualTreeHelper的使用

<Window x:Class="MyWpf.MainWindow"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:c="clr-namespa...

2018-07-09 09:44:45 1202

转载 WPF依赖项属性不需要包装属性也可以工作

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;namespace Wpf180706{    public class Student:DependencyObject    { p...

2018-07-06 09:04:37 178

转载 WPF依赖属性对内存的使用方式

WPF允许对象在创建时候并不包含存储数据的空间,只保留在用到时获取数据默认值,借用其他对象数据或者实时分配空间的能力

2018-07-06 08:48:30 181

转载 WPF Binding Path妙用

<Window x:Class="XamlTest.Window9"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window9" Heig...

2018-07-06 08:37:59 1274 1

转载 WPF Binding Path妙用代码实现

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System...

2018-07-06 08:37:35 1816

转载 WPF Binding妙处-既无Path也无Source

<Window x:Class="XamlTest.Window12"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        xmlns:sys="clr-name...

2018-07-06 08:37:26 904

转载 WPF ListView的使用

<Window x:Class="XamlTest.Window14"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window14" He...

2018-07-06 08:37:14 3341

转载 WPF RelativeSource的使用

<Window x:Class="XamlTest.Window15"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window15" He...

2018-07-06 08:36:38 493

原创 WPF ValidationRule的特点(默认目标-源才校验)

默认是当目标发生改变时候,通过绑定改变源时候进行校验,因为WPF认为源是安全的,如果想让源改变时候,也进行校验则设置验证规则的ValidatesOnTargetUpdated =trueusing System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Ta...

2018-07-06 08:36:04 495

转载 WPF 多路绑定

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System...

2018-07-06 08:35:22 656

转载 WPF SystemParameters的使用

 SubWindow win = new SubWindow();                //win.Width = SystemParameters.WorkArea.Width;            //win.Top = SystemParameters.FullPrimaryScreenHeight - win.Height;            win.Top = Syste...

2018-07-06 08:34:44 1414

转载 WPF UpdateSourceTrigger的使用

<Window x:Class="XamlTest.Window8"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window8" Heig...

2018-07-05 14:15:39 683

转载 WPF Binding的代码实现

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System...

2018-07-05 14:02:21 2177

转载 WPF GridSplitter最好设置HorizontalAlignment和VerticalAlignment,否则不可以左右移动

<Window x:Class="XamlTest.Window5"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window5" Heig...

2018-07-05 13:30:44 2057

转载 WPF BorderBrush BorderThickness

基本上所有的控件都可以设置BorderBrush BorderThickness 例如TextBox,Button

2018-07-05 11:05:58 5372

转载 WPF 四种尺寸单位

像素 px 默认单位可以省略厘米cm英寸 in点 pt1in = 96px1cm=96/2.42px1pt=96/72px

2018-07-05 10:58:26 5523

转载 WPF ListBox的内容属性Items

<Window x:Class="XamlTest.Window3"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window3" Heig...

2018-07-05 10:55:12 2633

转载 WPF HeaderedContentControl两个内容属性 Header和Content

<Window x:Class="XamlTest.Window2"        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"        Title="Window2" Heig...

2018-07-05 10:41:32 1463

Android 4高级编程(第3版)(完整书签).zip

Android 4高级编程第三版 带有完整书签,高清,很好用哦

2019-06-14

ASP.NET MVC 5高级编程 第5版(中文版带书签)

第1章入门 1.1ASP.NETMVC简介 1.1.1ASP.NETMVC如何适应ASP.NET 1.1.2MVC模式简介 1.1.3MVC在Web框架中的应用 1.1.4ASP.NETMVC5的发展历程 1.1.5ASP.NETMVC4概述 1.1.6开源发布 1.2ASP.NETMVC5概述 1.2.1OneASP.NET 1.2.2新的Web项目体验 1.2.3ASP.NETIdentity 1.2.4Bootstrap模板 1.2.5特性路由 1.2.6ASP.NET基架 1.2.7身份验证过滤器 1.2.8过滤器重写 1.3安装MVC5和创建应用程序 1.3.1ASP.NETMVC5的软件需求 1.3.2安装ASP.NETMVC5 1.3.3创建ASP.NETMVC5应用程序 1.3.4NewASP.NETProject对话框 1.4ASP.NETMVC应用程序的结构 1.4.1ASP.NETMVC和约定 1.4.2约定优于配置 1.4.3约定简化通信 1.5小结 第2章控制器 2.1控制器的角色 2.2示例应用程序:MVCMusicStore 2.3控制器基础 2.3.1简单示例:HomeController 2.3.2创建 第一个控制器 2.3.3控制器操作中的参数 2.4小结 第3章视图 3.1视图的作用 3.2视图的基础知识 3.3理解视图约定 3.4强类型视图 3.4.1ViewBag的不足 3.4.2理解ViewBag、ViewData和ViewDataDictionary 3.5视图模型 3.6添加视图 3.7Razor视图引擎 3.7.1Razor的概念 3.7.2代码表达式 3.7.3HTML编码 3.7.4代码块 3.7.5Razor语法示例 3.7.6布局 3.7.7ViewStart 3.8指定部分视图 3.9小结 第4章模型 4.1为MVCMusicStore建模 4.2为商店管理器构造基架 4.2.1基架的含义 4.2.2基架和实体框架 4.2.3执行基架模板 4.2.4执行基架代码 4.3编辑专辑 4.3.1创建编辑专辑的资源 4.3.2响应编辑时的POST请求 4.4模型绑定 4.4.1DefaultModelBinder 4.4.2显式模型绑定 4.5小结 第5章表单和HTML辅助方法 5.1表单的使用 5.1.1action和method特性 5.1.2GET方法还是POST方法 5.2HTML辅助方法 5.2.1自动编码 5.2.2辅助方法的使用 5.2.3HTML辅助方法的工作原理 5.2.4设置专辑编辑表单 5.2.5添加输入元素 5.2.6辅助方法、模型和视图数据 5.2.7强类型辅助方法 5.2.8辅助方法和模型元数据 5.2.9模板辅助方法 5.2.10辅助方法和ModelState 5.3其他输入辅助方法 5.3.1Html.Hidden 5.3.2Html.Password 5.3.3Html.RadioButton 5.3.4Html.CheckBox 5.4渲染辅助方法 5.4.1Html.ActionLink和Html.RouteLink 5.4.2URL辅助方法 5.4.3Html.Partial和Html.RenderPartial 5.4.4Html.Action和Html.RenderAction 5.5小结 第6章数据注解和验证 6.1为验证注解订单 6.1.1验证注解的使用 6.1.2自定义错误提示消息及其本地化 6.1.3注解的后台原理 6.1.4控制器操作和验证错误 6.2自定义验证逻辑 6.2.1自定义注解 6.2.2IValidatableObject 6.3显示和编辑注解 6.3.1Display 6.3.2ScaffoldColumn 6.3.3DisplayFormat 6.3.4ReadOnly 6.3.5DataType 6.3.6UIHint 6.3.7HiddenInput 6.4小结 第7章成员资格、授权和安全性 7.1安全性:无趣、但极其重要 7.2使用Authorize特性登录 7.2.1保护控制器操作 7.2.2Authorize特性在表单身份验证和AccountController控制器中的用法 7.2.3WindowsAuthentication 7.3要求角色成员使用Authorize特性 7.4扩展用户身份 7.4.1存储额外的用户资料数据 7.4.2持久化控制 7.4.3管理用户和角色 7.5通过OAuth和OpenID的外部登录 7.5.1注册外部登录提供器 7.5.2配置OpenID提供器 7.5.3配置OAuth提供器 7.5.4外部登录的安全性 7.6Web应用程序中的安全向量 7.6.1威胁:跨站脚本 7.6.2威胁:跨站请求伪造 7.6.3威胁:cookie盗窃 7.6.4威胁:重复提交 7.6.5威胁:开放重定向 7.7适当的错误报告和堆栈跟踪 7.7.1使用配置转换 7.7.2在生产环境中使用Retail部署配置 7.7.3使用专门的错误日志系统 7.8安全回顾和有用资源 7.9小结 第8章Ajax 第9章路由 第10章NuGet 第11章ASP.NETWebAPI 第12章应用AngularJS构建单页面应用程序 第13章依赖注入 第14章单元测试 第15章扩展ASP.NETMVC 第16章高级主题 第17章ASP.NETMVC实战:构建NuGet.org网站 17.11小结 附录AASP.NETMVC5.1

2018-07-09

ASP.NET 3.5动态网站开发基础教程源文件

ASP.NET 3.5动态网站开发基础教程源文件

2014-01-23

ASP.NET 3.5动态网站开发基础教程PPT

ASP.NET 3.5动态网站开发基础教程PPT

2014-01-23

21天学通C#所有源代码

21天学通C#源代码

2014-01-23

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除