随笔分类 -  C#

摘要:<?xml version="1.0"?> <ColumnsSeting xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Columns> <Co 阅读全文
posted @ 2019-03-07 15:21 以便以谢 阅读(1111) 评论(0) 推荐(0)
摘要:项目告一段落,快到一年时间开发了两个系统,一个客户已经在试用,一个进入客户测试阶段,中间突然被项目经理(更喜欢叫他W工)分派一个每隔两小时用windows服务去抓取客户提供的外网xml,解析该xml,然后将截取的节点字段值插入到已经建好相应结构的表中。并记录日志。xml结构概要如下: 93... 阅读全文
posted @ 2015-05-25 11:58 以便以谢 阅读(1832) 评论(1) 推荐(0)
摘要:KindEditor.ready(function (K) { window.editor1 = K.create('#taACCORDINGRESON', {afterBlur: function () { editor1.sync(); }}); ... 阅读全文
posted @ 2014-08-25 10:57 以便以谢 阅读(477) 评论(0) 推荐(0)
摘要:感谢广大博问博友的帮助和共同研究讨论,终于实现了一个无缓存无刷新仿购物车的小功能:一、实现效果简述:有一种列表,是由双层Repeater嵌套,第一层用来显示类别,第二层用来显示类别下的商品数据,其显示效果如下:且每一个菜名都可以单独点开进行配餐选择,效果如下:现在要在页面无刷新不计入缓存(在最后提交选餐数据的时候计入缓存,类似购物车,但这里不希望页面刷新)的情况下将所选择的商品名称和数量无重复的添加到一个叫做“餐饮盒”的容器里:最终实现结果:在修改订购数量的时候只修改餐饮盒中该商品的总价格,商品名称不能重复,并重新计算所有商品的总价格:二、实现代码:1.前台界面由2个Repeater组成: . 阅读全文
posted @ 2014-03-06 15:09 以便以谢 阅读(496) 评论(0) 推荐(0)
摘要:1.后台绑定:一种案例:根据第一级显示第二级,并带有每个二级的“全部”功能: #region 绑定区域 #region 绑定一级区域 string strFirstAreas = "全部({3})", "FoodRestaurant.aspx?Page=" + ((PageIndex - 1) {3}({4})", "FoodRestaurant.aspx?Page=" + ((PageIndex - 1) "; strSecAreas += "全部", "FoodRestaurant 阅读全文
posted @ 2014-03-03 14:20 以便以谢 阅读(633) 评论(2) 推荐(0)
摘要:之前弄了个谷歌地图API标注的调用实例,后来要求改成百度地图。感谢主,通过网上资料(百度地图API,百度地图API详解之地图标注)收集及研究,终于把百度地图标注和显示功能实现出来了,具体实现方法如下:1.依然是要弄个地图自定义控件:BaiduMap.ascxusing System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;namespace Web.UserControl{ public p... 阅读全文
posted @ 2014-02-11 16:11 以便以谢 阅读(6951) 评论(1) 推荐(0)
摘要:本实例介绍如何调用Google Maps API,并实现用鼠标标注地图,保存进数据库,以及二次加载显示等。1.需要新建一个自定义控件(如:Map.ascx),用于显示Google地图: 纬度 经度 Map.... 阅读全文
posted @ 2014-02-09 08:59 以便以谢 阅读(2751) 评论(0) 推荐(0)
摘要:1.Ajax请求处理页面:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.SessionState;using System.Web.Services;namespace Web.User.Ajax{ /// /// SendCheckcode 的摘要说明 /// [WebService(Namespace = "http://tempuri.org/")] [WebServiceBinding(ConformsT... 阅读全文
posted @ 2014-01-14 12:56 以便以谢 阅读(2954) 评论(6) 推荐(2)
摘要:<asp:ScriptManager ID="smScriptManager" runat="server"></asp:ScriptManager><asp:UpdatePanel ID="upLinkmanList" UpdateMode="Conditional" runat="server"><ContentTemplate>//要更新的数据部分,如一个Repeater,包括分页控件;</ContentTemplate>< 阅读全文
posted @ 2013-03-01 09:36 以便以谢 阅读(991) 评论(0) 推荐(0)
摘要:1 //返回到上一个页面 2 function CustViewBack() { 3 window.location.href = $("#<%=this.hidOriginalUrl.ClientID %>").val(); 4 } 5 6 onclick="javascript:CustViewBack();return false;" 7 8 <asp:HiddenField ID="hidOriginalUrl" runat="server"/> 9 ... 阅读全文
posted @ 2013-01-23 10:58 以便以谢 阅读(772) 评论(0) 推荐(0)
摘要:1 /// <summary> 2 /// 服务器路径 3 /// </summary> 4 public static string ServerPath 5 { 6 get 7 { 8 string serverPath = HttpContext.Current.Request.Url.Authority; 9 10 if (serverPath == "/")11 ... 阅读全文
posted @ 2012-10-10 13:20 以便以谢 阅读(379) 评论(0) 推荐(0)