会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Amity
HttpGet和HttpPost请求
摘要: internal static string HttpPost(string Url, string postDataStr) { string retString = string.Empty; try { ...
阅读全文
posted @ 2014-11-06 14:29 Amity
阅读(210)
评论(1)
推荐(0)
编辑
Ajax调用 打不开新窗口
摘要: Ajax调用后台,成功后打开新页面。 通常情况下没有什么问题,但许多用户可能会拦截广告。所以使用Ajax调用成功后可能打不开新窗口。 解决方法,利用用户事件同时Ajax采用同步方式。此情况下,浏览器认为是用户主动打开不会拦截。 示例代码: var patrn = /^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/; var email = emailaddress.value; ...
阅读全文
posted @ 2013-06-26 20:44 Amity
阅读(273)
评论(0)
推荐(0)
编辑
杂记3
摘要: 1获得checkbox 勾选的个数var len1 = $("input[name=question01]:checked").size(); 2 转颜色代码 System.Drawing.ColorConverter colConvert = new ColorConverter(); categoryNameLbl.BackColor = (System.Drawing.Color)colConvert.ConvertFromString("#0e93db");
阅读全文
posted @ 2013-06-26 20:39 Amity
阅读(84)
评论(0)
推荐(0)
编辑
todo WebClient学习
摘要: [HttpGet] public ContentResult VerifyProduct(string jsoncallback,string code) { code = code.ToUpper();//全部转换成大写 string result = string.Empty; if (!string.IsNullOrEmpty(code) && code.Length >= 11)//截取前11位 { code = code.Substring...
阅读全文
posted @ 2013-06-26 20:38 Amity
阅读(219)
评论(0)
推荐(0)
编辑
Repeater 嵌套
摘要: //页面 '> ProductName ProductDescription ...
阅读全文
posted @ 2013-06-24 21:17 Amity
阅读(155)
评论(0)
推荐(0)
编辑
动态生成数个gridview Button得到隐藏ID列的值
摘要: -------SQL string sql = @"select ID,ProductName as '产品',CatelogID as '分值',UpdatedOn as '兑换点数'FROM dbo.T_WAP_Product where CatelogID=@categoryID";--------protected void Page_Load(object sender, EventArgs e) { DataSet productDS = ProductDao.GetAllWapProducts(); GridVi
阅读全文
posted @ 2013-06-24 21:11 Amity
阅读(244)
评论(0)
推荐(0)
编辑
SQL 查询间隔时间大于60s的所有数据
摘要: CREATETABLEtest(idintPRIMARYKEYIDENTITY(1,1),dealerIdint,actiontimedatetime,actiontypeint)insertintodbo.Testselect'1','2013-6-24 12:30:00',1unionallselect'1','2013-6-24 12:30:30',1unionallselect'1','2013-6-24 12:31:00',1unionallselect'1','2
阅读全文
posted @ 2013-06-24 19:54 Amity
阅读(1137)
评论(0)
推荐(0)
编辑
杂记2
摘要: 1 可编辑的下拉框<tdclass="style15"style="height: 25px;"><divstyle="position: absolute;float: left;z-index: 0;"><divstyle="margin-left: 159px;width: 18px;overflow: hidden;"><selectid="ddlTaskCategory"runat="server"style="w
阅读全文
posted @ 2013-05-05 16:49 Amity
阅读(148)
评论(0)
推荐(0)
编辑
杂记
摘要: 1Question.htm页面以弹出窗口显示<tr><tdclass="loginQuestion"><ahref="javascript:window.showModalDialog('Question.htm','','dialogWidth:520px;dialogHeight:600px; dialogTop:'+(window.screen.availHeight-600)/2+';dialogLeft:'+(window.screen.availWidth -
阅读全文
posted @ 2013-03-23 21:57 Amity
阅读(159)
评论(0)
推荐(0)
编辑
后台反序列化前台传的JSON数据
摘要: using(varstream=Request.InputStream){ stringinputStream=newStreamReader(stream).ReadToEnd();JavaScriptSerializerjsSerializer=newJavaScriptSerializer();scheduleEventEntity=jsSerializer.Deserialize<ScheduleEventEntity>(inputStream);}foreach(PropertyDescriptordescriptorinTypeDescriptor.GetProper.
阅读全文
posted @ 2013-03-23 21:52 Amity
阅读(222)
评论(0)
推荐(0)
编辑
下一页
导航
博客园
首页
联系
订阅
管理
公告