C#
文章平均质量分 50
鳞林
布知道
展开
-
MVC,关于定时程序
mvc 定时程序原创 2022-08-30 17:01:29 · 105 阅读 · 0 评论 -
c# WebClient Post
C# WebClient Post原创 2022-08-30 16:48:51 · 449 阅读 · 0 评论 -
MVC上传Excel读取数据
HTML<a class="easyui-linkbutton l-btn-new-plain" data-options="iconCls:'icon-remove'" onclick="Import()">导入</a><input type="file" id="fileTxt2" onchange="isHaveFile()" style="display:none" />JSfunction Import() { $("#fileT...原创 2021-03-24 11:49:56 · 328 阅读 · 0 评论 -
文件夹【包含子文件夹或文件】进行压缩并下载
文件夹【包含子文件夹或文件】进行压缩并下载压缩下载调用:例类压缩 public static void CreateZipFileTTT(string folderToZip, string zipedFile) { bool result = false; if (!Directory.Exists(folderToZip)) return; ZipOutputStream zipStream = new ZipO原创 2021-03-01 10:28:18 · 229 阅读 · 0 评论 -
c#:webform,ajax
aspx:var a=17;$.ajax({ type: "post", url: "Index.aspx/CsFun", contentType: "application/json; charset=utf-8", data: "{ a:'" + a + "'}", success: function (data) { var return_a...原创 2019-08-14 14:39:37 · 201 阅读 · 0 评论 -
c#:mvc单选按钮(性别)
@item.Sex --性别(1女 2男 0保密)<input name="sex" value="1" type="radio" disabled="disabled" @(item.Sex == 1 ? "checked" : "") />女 <input name="sex" value="2" type="radio" disabled="di...原创 2019-08-14 14:21:11 · 2670 阅读 · 0 评论 -
c#:datatable转换为对象
public static class DataTableToEntity{ public static T TableToEntity<T>(DataTable dt, int rowindex = 0, bool isStoreDB = true) { Type type = typeof(T); T entity = Activa...翻译 2019-08-06 10:40:58 · 1040 阅读 · 0 评论 -
c#:webform使用验证码生成器
AspxAjax请求Aspx.cs页面方法GetNumber ----------- $("…").src="…"Aspx.cspublic void GetNumber(){ PicValCodeHeler mHelper = new PicValCodeHeler(); //***生成四位随机数 string number = mHelper.CreateR...原创 2019-08-05 14:09:33 · 310 阅读 · 0 评论 -
c#:mvc使用验证码生成器
View: <img id="NumberCode" style="cursor: pointer;" src="@Url.Action("GetNumber", "Login")?width=130&height=34&t=@DateTime.Now.Ticks" title="看不清,点击换一张" />JS: $("#Numbe...原创 2019-08-05 13:56:17 · 197 阅读 · 0 评论 -
c#:mvc中jquery上传图片
view:<body> <input type="file" class="ajax_file_upload" /></body>Js://引用jquery.js,,,版本最新的把!!!<script> $(function () { $("body").on("change", ".ajax_file_u...原创 2019-08-05 11:08:17 · 605 阅读 · 0 评论 -
c#:微信参数二维码
原:https://blog.csdn.net/panzhixin2012/article/details/28594353 JsonData bejson = JsonMapper.ToObject(tockes); //引用 LitJson.dllLitJson.dll:https://download.csdn.net/download/weixin_43737791/114620...翻译 2019-08-03 11:27:39 · 340 阅读 · 0 评论