摘要:
js调用 阅读全文
摘要:
//using Newtonsoft.Json; StringBuilder sb = new StringBuilder(); string str = "[{ID:'1',Name:'zhangsan',Other:[{Age:'111'}]}]"; JavaScriptArray javascript = (JavaScriptArray)JavaScriptConvert.DeserializeObject(str); if (javascript.Count > 0) { JavaScript... 阅读全文
摘要:
using System;using System.Collections.Generic;using System.Web;using System.Drawing.Imaging;using System.Drawing;/// ///MakeThum 的摘要说明/// public class MakeThum{ public MakeThum() { // //TODO: 在此处添加构造函数逻辑 // } /// /// 生成缩略图//带压缩图片不压缩22k压缩2k /// /// 原始路径 ... 阅读全文
摘要:
select id,OrderID,Mobile,Name from (select id,OrderID,Mobile,Name from V_Order where len(isnull(Mobile,''))>0 and State=0) Customer where id in (select min(id) from (select id,OrderID,Mobile,Name from V_Order where len(isnull(Mobile,''))>0 and State=0) Customer group by Mobile 阅读全文
摘要:
public static string getUControlHtml(string controlName) { StringBuilder build = new StringBuilder(); HtmlTextWriter htmlWriter = new HtmlTextWriter(new StringWriter(build)); UserControl uc = new UserControl(); Control ctrl = uc.LoadControl(controlName + ".ascx");/... 阅读全文
摘要:
$("#txtId").bind("input propertychange change", function (event) { if (event.type != "propertychange" || event.originalEvent.propertyName == "value") { $(this).css({"border": "1px solid red"}); } }); 阅读全文
摘要:
CommonJsonModelAnalyzer.csusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConvertJosn{ public class CommonJsonModelAnalyzer { protected string _GetKey(string rawjson) { if (string.IsNullOrEmpty(rawjson)) return... 阅读全文
摘要:
public delegate void MyDelegate(object sender, EventArgs e); protected void Page_Load(object sender, EventArgs e) { MyDelegate md = new MyDelegate(Button1_Click); //md(Button1, null); md(Button1, new System.EventArgs()); //MyDelegate md1 = new MyDelegate(DropDownLis... 阅读全文
摘要:
<!DOCTYPE html><html><head> <title>Simple Map</title> <meta name="viewport" content="initial-scale=1.0, user-scalable=no"> <meta charset="utf-8"> <style> html, body, #map-canvas { margin: 0; padding: 0; height: 100%; } < 阅读全文
摘要:
IF OBJECT_ID('tempdb..#t') IS NOT NULL DROP TABLE #t;create table #t(id int identity,Dt varchar(10));declare @starttime datetime,@endtime datetimeset @starttime = '===start==='set @endtime ='===end==='insert #tselect convert(varchar(10),dateadd(day,number,@starttime),112) dtf 阅读全文