06 2020 档案

摘要:添加界面 @{ ViewBag.Title = "Detail";} <a href="/Home/Index">首页</a> > <a href="/Product/Index">商品列表</a>><h2>商品id是:@ViewBag.Id</h2><input type="hidden" id= 阅读全文
posted @ 2020-06-30 20:59 G蠢蠢 阅读(241) 评论(0) 推荐(0)
摘要:<script> $(function () { show(); }) function show() { $.ajax({ url: 'http://localhost:53134/api/Student/Show', type: 'Get', dataType: 'json', success: 阅读全文
posted @ 2020-06-27 08:28 G蠢蠢 阅读(112) 评论(0) 推荐(0)
摘要://1.获取秒杀商品信息的接口 public ProductInfo GetProduct(int productId) { ProductInfo productInfo = new ProductInfo(); productInfo.PId = 1; productInfo.PName = " 阅读全文
posted @ 2020-06-27 08:12 G蠢蠢 阅读(120) 评论(0) 推荐(0)
摘要://1.获取秒杀商品详情接口 [Route("api/GetProduct")] [HttpGet] public ProductInfo GetProduct(int productId = 1) { ProductInfo info = new ProductInfo(); info.PId = 阅读全文
posted @ 2020-06-26 20:49 G蠢蠢 阅读(208) 评论(0) 推荐(0)
摘要:控制器 public ActionResult Index() { return View(); } public ActionResult GetKill() { return View(); } public ActionResult DingDan() { return View(); } @ 阅读全文
posted @ 2020-06-26 19:55 G蠢蠢 阅读(112) 评论(0) 推荐(0)
摘要:GoodBll bll = new GoodBll(); /// <summary> /// 添加 /// </summary> /// <param name="model"></param> /// <returns></returns> [HttpPost] public int Add(st 阅读全文
posted @ 2020-06-26 19:51 G蠢蠢 阅读(109) 评论(0) 推荐(0)
摘要:BLL GoodDal dal = new GoodDal(); /// <summary> /// 添加 /// </summary> /// <param name="model"></param> /// <returns></returns> public int Add(Good mode 阅读全文
posted @ 2020-06-26 19:49 G蠢蠢 阅读(113) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Mvc; namespace WeekMvc.Controllers{ public class Goo 阅读全文
posted @ 2020-06-26 19:42 G蠢蠢 阅读(118) 评论(0) 推荐(0)
摘要:删除,显示 @{ ViewBag.Title = "Show";} <h2>Show</h2><script src="~/Content/BandSel.js"></script> <table> <tr> <td><input id="txtName" type="text" class="fo 阅读全文
posted @ 2020-06-26 19:34 G蠢蠢 阅读(208) 评论(0) 推荐(0)
摘要:一般处理程序 filename using System;using System.Collections.Generic;using System.Linq;using System.Web;namespace EFDemo{ /// <summary> /// FileUpload 的摘要说明 阅读全文
posted @ 2020-06-17 08:21 G蠢蠢 阅读(145) 评论(0) 推荐(0)
摘要:public ActionResult Photo() { var list = DBHlper.GetList<PengYouQuan>("select * from PengYouQuan"); return View(list); } @model IEnumerable<_6._15Zuoy 阅读全文
posted @ 2020-06-16 11:22 G蠢蠢 阅读(167) 评论(0) 推荐(0)
摘要:@{ ViewBag.Title = "Show";} <h2>Show</h2><script src="~/Scripts/jquery-3.3.1.js"></script><link href="~/Content/bootstrap.css" rel="stylesheet" /><spa 阅读全文
posted @ 2020-06-16 11:13 G蠢蠢 阅读(120) 评论(0) 推荐(0)
摘要:MVC调API的显示跨域 手动引用 建立modeldal层控制器里写连接字符 </appSettings> <system.webServer>里写 <connectionStrings> <add name="con" connectionString="Data Source=.;Initial 阅读全文
posted @ 2020-06-16 11:10 G蠢蠢 阅读(592) 评论(0) 推荐(0)
摘要:/// <summary> /// 分页存储过程的调用 /// </summary> /// <param name="pageCount"></param> /// <param name="name"></param> /// <param name="pageIndex"></param> / 阅读全文
posted @ 2020-06-09 20:42 G蠢蠢 阅读(183) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Net;using System.Net.Http;using System.Web.Http;using Model;using DAL; na 阅读全文
posted @ 2020-06-09 15:23 G蠢蠢 阅读(193) 评论(0) 推荐(0)
摘要:dal(添加,显示) using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using Model; namespace DAL{ 阅读全文
posted @ 2020-06-09 15:21 G蠢蠢 阅读(176) 评论(0) 推荐(0)
摘要:可以参照的model层示例 ////温馨提示记住一定要让需要的去引用模型层 using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks; 阅读全文
posted @ 2020-06-09 15:08 G蠢蠢 阅读(357) 评论(0) 推荐(0)
摘要:就是正规的按商品属性来添加商品 @{ ViewBag.Title = "Add";} <h2>添加优惠券</h2> <table class="table" > <tr> <td class="text-right">优惠券名称</td> <td> <input type="text" id="mc 阅读全文
posted @ 2020-06-09 14:55 G蠢蠢 阅读(167) 评论(0) 推荐(0)
摘要:-- 分页存储过程ALTER proc [dbo].[p_pageShow]( @pageSize int, --每页大小 @currentPage int out, --当前页 @houseName nvarchar(50), --房产名称 @totalCount int out, --总记录数 阅读全文
posted @ 2020-06-09 14:52 G蠢蠢 阅读(146) 评论(1) 推荐(0)
摘要:(表格的形式来显示界面) //通过前台控制器跳转生成的 @{ ViewBag.Title = "Show";} <h2>优惠券领取记录</h2> <table class="table"> <tr> <td>优惠券类型:</td> <td> <input type="radio" name="yhf 阅读全文
posted @ 2020-06-09 14:39 G蠢蠢 阅读(108) 评论(0) 推荐(0)