MVC 中获取Json数据
@{ ViewBag.Title = "json示例项目";}@Scripts.Render("~/bundles/jquery")json示例项目View GetJsonData1 GetJsonData2 暂无数据 function getJsonData() { var str = ""; $.getJS …… 阅读全文
@{ ViewBag.Title = "json示例项目";}@Scripts.Render("~/bundles/jquery")json示例项目View GetJsonData1 GetJsonData2 暂无数据 function getJsonData() { var str = ""; $.getJS …… 阅读全文
/* 数据表SQL脚本if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[FK_UsersInRoles_Roles]') and OBJECTPROPERTY(id, N'IsForeignKey') = 1)ALTER TABLE [dbo].[UsersInRoles] DROP CONSTRAINT …… 阅读全文
已安装软件:VS2015 Mysql服务器使用时:使用EF设计器此时此刻,发现二逼了,咋没有mysql????(好吧,上图是用的别人的,本机已经木有这个没有mysql的界面了)好吧,下面重点:需要下载安装:1:mysql-for-visualstudi …… 阅读全文
<!-- 有关如何配置 ASP.NET 应用程序的详细信息,请访问 http://go.microsoft.com/fwlink/?LinkId=169433 --> <!-- 在AssemblyInfo.cs加入 [assembly: log4net.Config.XmlConfigurator(ConfigFile = …… 阅读全文
//MVC HTML辅助类常用方法记录(1)@Html.DisplayNameFor(model => model.Title)是显示列名,(2)@Html.DisplayFor(modelItem => item.Title)是显示列的内容(3)@Html.ActionLink("Create New", "Create")是超链接,跳转到model中的create页面,引用的是co …… 阅读全文
using System;using System.Collections.Generic;using System.Collections.Specialized;using System.ComponentModel;using System.Linq;using System.Reflection;using System.Text;using System.Threading …… 阅读全文