摘要: 创建mvc项目http管道流: 创建一个类,该类继承自ihttpmodule可用于防止sql注入漏洞web.config页面:<system.webServer> <modules> <add name="mymodule" type="WebApplication2.mymodule,WebApp 阅读全文
posted @ 2018-10-20 10:03 程非成 阅读(106) 评论(0) 推荐(0) 编辑
摘要: namespace JngsWeb.BLL.Interface{ public class add_collect:JsonBase { public JngsDal tdal = null; public add_collect(JsonData dta) : base(dta) { tdal = 阅读全文
posted @ 2018-10-20 10:02 程非成 阅读(256) 评论(0) 推荐(0) 编辑
摘要: namespace JngsWeb.BLL.Interface{ public class get_complain_list : JsonBase { public JngsDal tdal = null; public get_complain_list(JsonData dta) : base 阅读全文
posted @ 2018-10-20 09:57 程非成 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 分页的实现: aspx:::::: <body> <div class="mui-content"> <ul class="mui-table-view mui-table-view-striped mui-table-view-condensed" id="readdata"> </ul> </d 阅读全文
posted @ 2018-10-20 09:54 程非成 阅读(110) 评论(0) 推荐(0) 编辑
摘要: <input id="Id_Number" class="form-control" runat="server" checkexpession="NotNull" /> function isCardNo(card) { var pattern = /(^\d{15}$)|(^\d{18}$)|( 阅读全文
posted @ 2018-10-20 09:48 程非成 阅读(124) 评论(0) 推荐(0) 编辑
摘要: 时间转换的方法: public string get_time(int duration) { TimeSpan ts = new TimeSpan(0, 0, Convert.ToInt32(duration)); string str = ""; if (ts.Hours > 0) { str 阅读全文
posted @ 2018-10-20 09:45 程非成 阅读(158) 评论(0) 推荐(0) 编辑
摘要: aspx:<ul style="list-style: none;display:none" class="boxs1"> <li> <asp:Label ID="Label3" runat="server" Text="选择文件:"></asp:Label> </li> <li> <asp:Fil 阅读全文
posted @ 2018-10-20 09:41 程非成 阅读(168) 评论(0) 推荐(0) 编辑
摘要: namespace JngsWeb.Web.Interface{ public partial class postnotifyfile : System.Web.UI.Page { MultipartDataInfo mdi; protected void Page_Load(object sen 阅读全文
posted @ 2018-10-20 09:33 程非成 阅读(118) 评论(0) 推荐(0) 编辑
摘要: namespace JngsWeb.Web.Interface{ public partial class fileupload : System.Web.UI.Page { MultipartDataInfo mdi; protected void Page_Load(object sender, 阅读全文
posted @ 2018-10-20 09:31 程非成 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 【.aspx.cs】 string shouji = ""; string templateid = "181ed0353b8341808620a1ed871793b5"; shouji = gelian.Value.Trim(); string yzm = IdentifyingCode.GenC 阅读全文
posted @ 2018-10-20 08:45 程非成 阅读(3656) 评论(0) 推荐(0) 编辑
摘要: js转化为int类型:parseInt(key) 【truncate数据库】 truncate table tousuyuangong_t 上传图片的接口是.aspx文件时:aspx 页面只留头部,其他都删掉 jq获取div下的img的地址:$("#divId img").eq(0).attr("s 阅读全文
posted @ 2018-10-20 08:16 程非成 阅读(103) 评论(0) 推荐(0) 编辑
摘要: var_dump()显示出数据的类型memory_get_usage() 获取当前的内存的消耗“”的变量会输出变量的内容 ''变量会当做字符串输出当字符串的长度很长时<<<(定界符)GOD(标识符) 内容 GODfopen("文件","r") 打开文件mySql_connect("","","")建 阅读全文
posted @ 2018-10-20 08:10 程非成 阅读(98) 评论(0) 推荐(0) 编辑
摘要: 【exit】 退出程序 【%】 占位符:%s 【string】 %f【float】 %d【int】 isdigit:长得像数字 【print不换行】 python 2.X 版本使用逗号分割可以使print不换行 【print "hello",】 python 3.X版本利用end方法可以使print 阅读全文
posted @ 2018-10-20 08:05 程非成 阅读(428) 评论(0) 推荐(0) 编辑