摘要: 使用MVC简单实现文件的上传与下载 一、使用Form表单提交上传文件 <form action="@Url.Action("Upload","Default")" method = "post" enctype="multipart/form-data" > <input type="file" n 阅读全文
posted @ 2020-07-22 16:01 小王同学123 阅读(264) 评论(0) 推荐(0) 编辑
摘要: gocreate function dbo.Replacestr(@stringstr nvarchar(50),@selectstr nvarchar(50),@replacstr nvarchar(50))--参数returns nvarchar(50)--返回值asbegin --定义变量接受 阅读全文
posted @ 2020-07-08 08:13 小王同学123 阅读(96) 评论(0) 推荐(0) 编辑
摘要: private void Button1_Click(object sender, EventArgs e) { //接收通过url发送的请求数据 WebClient client = new WebClient(); //规范数据格式 client.Encoding = Encoding.UTF8 阅读全文
posted @ 2020-07-06 08:07 小王同学123 阅读(128) 评论(1) 推荐(1) 编辑
摘要: <div> <span>总条数:<span id="spcount"></span></span> <input id="Hidden1" type="hidden" value="1" /> <input id="Button1" type="button" value="上一页" onclick 阅读全文
posted @ 2020-07-01 08:12 小王同学123 阅读(112) 评论(0) 推荐(0) 编辑
摘要: //商品列表 var id=@Session["Id"];function load() {$.ajax({url: "http://localhost:52975/api/Goods/GetGood/"+id,type: "post",dataType: "json",success:functi 阅读全文
posted @ 2020-07-01 08:08 小王同学123 阅读(310) 评论(0) 推荐(0) 编辑
摘要: Redis-五种数据类型 对于Redis 来说,他只能存储五种基本数据类型 在之前的版本中都是String,Hash,List,SortedSet(zSet),Map 而现在的新版本中String,Hash,List,SortedSet(zSet),Set 一、字符串String String Ke 阅读全文
posted @ 2020-06-23 08:43 小王同学123 阅读(400) 评论(0) 推荐(0) 编辑
摘要: 25.什么是反射?答:反射,Reflection,通过它我们可以在运行时获得各种信息,如程序集、模块、类型、字段、属性、方法和事件通过对类型动态实例化后,还可以对其执行操作简单来说就是用string可以在runtime为所欲为的东西,实际上就是一个.net framework内建的万能工厂一般用于插 阅读全文
posted @ 2020-06-15 13:43 小王同学123 阅读(595) 评论(0) 推荐(2) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;using Syste 阅读全文
posted @ 2020-06-12 15:47 小王同学123 阅读(136) 评论(1) 推荐(2) 编辑