随笔分类 -  Asp.net

摘要:1,采用net6 furion layui sqlsugar 实现后台通用管理框架 2,实现菜单、用户、权限 、日志 3,实现文章新闻发布(栏目 内容 banner) 4, 提供api接口 5,效果展示 5,源码地址 https://gitee.com/Lin_su/ls_net6_project 阅读全文
posted @ 2022-11-15 21:56 sulin 阅读(1039) 评论(0) 推荐(0)
摘要:1.下载swig https://sourceforge.net/projects/swig/files/ 2.配置环境变量 path 添加你的swig路径 3.创建项目解决方案和一个win32 dll 和c# 控制台程序 4.修改cpp类 5.在SwigC 下面添加SwigC.i 和 SwigC. 阅读全文
posted @ 2019-07-16 16:46 sulin 阅读(1236) 评论(0) 推荐(0)
摘要:1.添加js引用 <script src="JS/jquery-1.4.2.min.js" type="text/javascript"></script> <script src="JS/ajaxfileupload.js" type="text/javascript"></script> 2.h 阅读全文
posted @ 2017-09-11 14:53 sulin 阅读(484) 评论(0) 推荐(0)
摘要:1.使用iframe 加载 使用get方式 <iframe id="comdownshow" height="0" width="0" frameborder="0" scrolling="no"></iframe> 2.使用from表单组装 使用post方式 jQuery.download = f 阅读全文
posted @ 2017-08-23 15:22 sulin 阅读(1159) 评论(0) 推荐(0)
摘要:1.引用了一个第三方组件 ICSharpCode.SharpZipLib.Zip; 2.具体代码 实体类,可以用hashtable 替代 ,感觉hashtable 比较灵活 扩展的修改文件名称 具体上传类 3.示例代码 阅读全文
posted @ 2016-09-23 09:09 sulin 阅读(5292) 评论(1) 推荐(2)
摘要:1.采用 Web API Help Page 显示效果 2.swaggerui 创建文档接口 效果图 3.swagger ui 安装配置 nuget 安装 2.设置xml文件 3.配置根路径 预览swagger ui http://localhost:32033/swaggerui/index.ht 阅读全文
posted @ 2016-08-08 14:56 sulin 阅读(2712) 评论(0) 推荐(0)
摘要:1.添加引用dllusing Lucene.Net.Search;using Lucene.Net.Analysis.PanGu;using PanGu;using PanGu.HighLight;using Lucene.Net.Documents;using Lucene.Net.Store;u... 阅读全文
posted @ 2015-11-05 15:03 sulin 阅读(204) 评论(0) 推荐(0)
摘要:1.图列展示2.分页控件代码Paging.Designer.cs partial class Paging { /// /// 必需的设计器变量。 /// private System.ComponentModel.IContain... 阅读全文
posted @ 2015-08-22 20:46 sulin 阅读(383) 评论(0) 推荐(0)
摘要:1 .NPOI 版本2.12. NPOI 读取execl3.导入数据(SqlBulkCopy)示例代码: 1 public class ImportServerData 2 { 3 4 DataTable dt_ItemInfo = new DataTable();... 阅读全文
posted @ 2015-07-21 14:32 sulin 阅读(342) 评论(0) 推荐(0)
摘要:1.c#访问修饰符有哪些,有何异同?private:私有类型,只用当前类可以访问protected:访问包含类或者类派生的类internal:程序集类型,在相同的命名空间内可以访问public:访问成员没有限制,属于最高级别访问权限protectedinternal:访问仅限于包含类派生的当前程序集... 阅读全文
posted @ 2015-07-02 21:11 sulin 阅读(290) 评论(0) 推荐(0)
摘要:1 /// 2 /// 生产word 文档 3 /// 4 public class GenerateWord 5 { 6 /// 7 ///模板地址 8 /// 9 p... 阅读全文
posted @ 2015-06-29 16:30 sulin 阅读(820) 评论(0) 推荐(1)
摘要:6.SN.Controllers文件夹Config(Controllers.xml)文件夹Controllers(TestController.cs)Controllers.xml1 2 6 TestController.cs 1 using System; 2 using System.Colle... 阅读全文
posted @ 2015-05-08 14:22 sulin 阅读(768) 评论(0) 推荐(0)
摘要:1.创建项目结构 控制器: SN.Controllers 数据访问 :SN.Dao 实体映射:SN.Models 服务层: SN.Servers 视图层: SN.Web2.添加需要插件 Tools=>Manage Nuget Package A. Spring.Net2.0 B. NHiber... 阅读全文
posted @ 2015-05-08 13:57 sulin 阅读(1353) 评论(1) 推荐(0)
摘要:1.根据 url 和 encoding 获取当前url页面的 html 源代码 public static string GetHtml(string url, Encoding encoding) { HttpWebRequest request = null... 阅读全文
posted @ 2015-05-05 10:10 sulin 阅读(1108) 评论(0) 推荐(0)
摘要:1.柱状图2.曲线图3.饼状图4.调用代码GDIHelper.DrawingCharts dcharts = new GDIHelper.DrawingCharts();dcharts.Keys= new string[]{"一月", "二月", "三月", "四月", "五月", "六月","七月... 阅读全文
posted @ 2015-04-27 22:36 sulin 阅读(253) 评论(0) 推荐(0)
摘要:1.下载最新版本的Microsoft Web Platform Installer 5.0。2.在组件列表中选择最新版本的 WebMatrix 3.0,安装重启后即可正常使用 IIS Express 调试项目了。 阅读全文
posted @ 2015-04-04 20:22 sulin 阅读(309) 评论(0) 推荐(0)
摘要:/// /// 中缀表达式到逆波兰表达式的转换及求值 /// public class RpnExpression { #region 定义属性 int Top = -1; ... 阅读全文
posted @ 2014-12-22 22:04 sulin 阅读(3848) 评论(1) 推荐(0)
摘要:1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace MySystemManager.Utility 7 { 8 ... 阅读全文
posted @ 2014-12-02 21:11 sulin 阅读(225) 评论(0) 推荐(0)
摘要:1.采用 System.Speech.Synthesis 实现 1.1 控制面板必须有语音合成1.2 using System.Speech.Synthesis ;//包含初始化和配置的语音合成引擎选件类,为响应事件并输入修改的语音属性创建用于生成语音提示 1.3 调用 SpeechSynthesi... 阅读全文
posted @ 2014-10-17 15:21 sulin 阅读(853) 评论(0) 推荐(0)
摘要:private string GetHostNameAndIP( bool isv4Orv6) { string HostName = Dns.GetHostName();//本机名 string IPAddress = ""; System.Net.IPAddress[] addressList... 阅读全文
posted @ 2014-04-26 15:35 sulin 阅读(252) 评论(0) 推荐(0)