- 博客(50)
- 资源 (69)
- 收藏
- 关注
转载 jquery操作select标签
1.获取select 选中的 text: $("#cusChildTypeId").find("option:selected").text(); $("#cusChildTypeId option:selected").text()2.获取select选中的 value: $("#ddlRegType ").val();3.获取select选中的索引:
2016-11-16 09:16:47 621
转载 sql 日期相关操作
1.DECLARE @Date DATETIME SET @Date = GETDATE () -- 前一天,给定日期的前一天 SELECT DATEADD ( DAY , - 1 , @Date ) AS 前一天 -- 后一天,给定日期的后一天 SELECT DATEADD ( DAY , 1 , @Date ) AS 后一天 GO -- 月初,计算给定日期所在月的第一天 DECLARE @
2016-06-07 09:53:31 555
原创 mvc控制器的action参数问题
1.为什么 public ActionResult Success(long aid, int old, string src,Entity.order order) 对应的url中src、order参数可以不传,单是aid、old必传,否则进不了action方法?因为:(1) 参数如果为值类型,则必传。string类型可以不传,不传的话为”“,如果在其他方法中则为必传;
2016-05-19 12:30:09 2329
转载 socket
/// /// Socket /// public static class SlSocket { /// /// 发送信息 /// /// 端点IP /// 端点Port /// 消息 /// 是否接受消息 /// 数据编码方式
2016-01-29 10:24:57 528
原创 字符串类型html如何显示出html效果,字符串中的转义符以html效果显示出来,html编码, HtmlHelper.Raw()
字符串中的转义符如何正确显示html
2015-10-21 09:28:58 3422
原创 ASP.NET MVC 4json之JsonResult
后台: public JsonResult ChangeMallId(string old, string new) { bool success = false; string content = string.Empty; // ……数据操作 return Json(new
2015-09-21 11:10:05 1467
原创 发邮件MailMessage、SmtpClient
/// /// 发邮件 /// /// 正文 /// 标题 /// 发送邮箱 /// 接收邮箱 /// public static bool SendMail(string title, string body, string fromMail, List toMa
2015-09-16 17:34:59 1026
原创 xml与datatable间相互转换
//将xml转为Datable public static DataTable XmlToDataTable(string xmlStr) { if (!string.IsNullOrEmpty(xmlStr)) { StringReader StrStream = null;
2015-09-16 17:27:37 5660
原创 向某个url提交数据并读取该地址返回的xml,并将xml转换成dataset,并返回dataset中某个表
/// /// 向某个url提交数据并读取该地址返回的xml,并将xml转换成dataset,并返回dataset中某个表 /// /// 提交的低至 /// 参数 /// 表名 /// public static DataTable PostData(string url, st
2015-09-16 17:12:07 694
原创 datatable筛选、查询-------linq
for (int i = 0; i < dt.Rows.Count; i++) { var qu = from tb in dt.AsEnumerable() where //tb.Field("pid").ToString() == dt.Rows[i]["pid"]
2015-09-15 18:22:11 4230
原创 代码生成XML
string[] data1 = File.ReadAllLines("E:\\HtmlTxt.txt");//参考文件 string[] data2 = File.ReadAllLines("E:\\SqlTxt.txt");//数据文件 IEnumerable data5 = data1.Except(data2);
2015-09-07 15:55:46 410
原创 两个TXT文件比较 并集,交集
string[] data1 = File.ReadAllLines("E:\\HtmlTxt.txt");//参考文件 string[] data2 = File.ReadAllLines("E:\\SqlTxt.txt");//数据文件 IEnumerable data3 = data2.Except(data1); IE
2015-09-07 15:51:49 2024
原创 读取SQL生成txt文件
string ConStr = "Data Source=……;database=……;uid=……;pwd=……;"; SqlConnection con = new SqlConnection(ConStr); SqlCommand cmd = new SqlCommand("", con); cmd.Command
2015-09-07 15:47:33 1315
原创 html解析器 HtmlAgilityPack
可以到 http://www.oschina.net 开源中国社区下载相关Dll,百度有很多如何使用的资料 HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument(); doc.Load("city.html"); Html
2015-09-07 15:42:36 596
原创 c# send mail
/// /// 发邮件 /// /// 正文 /// 标题 /// 发送邮箱 /// 接收邮箱 /// public static bool sendMail(string Body, string title, string fromMail, string to
2015-09-01 09:39:09 924
原创 获取远程xml数据-表结构
/// /// 获取远程接口数据-表结构 /// /// 目标接口 /// 响应超时时间(单位秒) /// 读写流超时时间(单位秒) /// 数据表结果集 public static DataSet DownLoadRemoteData(string target, int Resp
2015-08-31 16:08:19 588
原创 获取web.config中appSettings的值
public static string getApp(string name) { if(string.IsNullOrEmpty(name)) return ""; string value = ConfigurationManager.AppSettings[name]+""; if (string.Is
2015-08-31 16:02:06 2904
原创 xml to datatable
xml: 阿坝州 abazhou s view_news_title_index_abazhou 阿克苏 akesu s view_news_title_index_akesu 安达 anda n view_news_title_index_anda 实现方式:
2015-08-31 15:19:07 469
转载 ArcGIS Engine下实现地图输出
摘要:我们在用ArcGIS Engine定制开发的时候,常常需要将当前的地图文档输出,或者以bmp的形式拷贝到剪贴板,那么到底该如何实现这些操作呢?这篇文章将会给我们介绍两种常用的方法。 我们在用ArcGIS Engine定制开发的时候,常常需要将当前的地图文档输出,或者以bmp的形式拷贝到剪贴板,那么到底该如何实现这些操作呢?这篇文章将会给我们介绍两种常用的方法。一、实现像ArcM
2015-07-23 15:34:43 2644
转载 ArcEngine开发_导出地图
using System;using System.Drawing;using System.Runtime.InteropServices;using ESRI.ArcGIS.ADF.BaseClasses;using ESRI.ArcGIS.ADF.CATIDs;using ESRI.ArcGIS.Carto;using ESRI.ArcGIS.Controls;using ES
2015-07-23 11:51:45 4898
转载 导出图片,包含栅格的地图导出的图片模糊,arcgis eingine
原因:栅格数据重采样了,解决方法: PixelBoundsEnv = new Envelope() as IEnvelope; if (bClipToGraphicsExtent && (docActiveView is IPageLayout)) { docGraphicsE
2015-07-23 11:48:23 8014 2
转载 iOS 学习资料整理(中文版)
这份学习资料是为 iOS 初学者所准备的, 旨在帮助 iOS 初学者们快速找到适合自己的学习资料, 节省他们搜索资料的时间, 使他们更好的规划好自己的 iOS 学习路线, 更快的入门, 更准确的定位的目前所处的位置.该文档会持续更新, 同时也欢迎更多具有丰富经验的 iOS 开发者将自己的常用的一些工具, 学习资料, 学习心得等分享上来, 我将定期筛选合并, 文档尚有一些不完善之处, 也请不
2015-07-02 15:25:27 3458
转载 地图输出
很多的时候在地图制作完成以后,我们需要将它用不同的格式输出,如PDF,bmp等格式,这样的格式方便我们用户在没有安装ArcMap的计算机平台上对地图进行浏览,查看。地图输出可以分为两大类,即栅格数据和适量数据格式,前者的如BMP,JPG,而后者的如PDF,,SVG.IExport接口作为地图输出的主要接口,被不同的类实现,如下图所示: 这10个类都是组件类,可以直接用来实例
2015-05-26 10:02:17 1715
转载 AE程序5
33:使用PageLayoutControl打印private void PrintPageLayout(){IPrinter pPrinter;pPrinter = axPageLayoutControl1.Printer;IPaper pPaper;pPaper = pPrinter.Paper;IPage pPage;pPage = axPageLayoutC
2015-05-26 09:35:47 827
转载 完善 C# ListView 系列-可编辑单元格
希望是在 ListView 中双击某单元格时,该单元格内容可编辑。不过 ListView 本身是不带这个功能的,我们要实现的原理是获取双击的是哪个单元格,然后在该单元格显示一个文本框(也可以是其他控件,本文以文本框为例)。ListViewCellnamespace Yulin.YWinForm{ public class ListViewCell {
2015-05-20 17:45:40 12174
转载 extract by mask出现的问题总结
用一SHP区文件做为MASK裁剪一DEM栅格影像。裁剪后发现结果DEM与原DEM的某些像素值不同。by mask出现的问题总结" title="extract by mask出现的问题总结" style="margin:0px; padding:0px; border:0px; list-style:none">原因为裁切后两个栅格的象元并不一定是完全重叠的,有可能错位,也就是说对
2015-05-20 10:07:32 9720
原创 arcgis engine 获取高亮Feature、element
IGraphicsContainer pGraphicsC = mainAxMapControl.Map as IGraphicsContainer; IGraphicsContainerSelect pGraphicsCSelect = pGraphicsC as IGraphicsContainerSelect;IEnumElement pEnumEle = pGraphicsCSe
2015-05-15 16:32:06 3197
转载 使用C#调用windows API(从其它地方总结来的,以备查询)
C#调用windows API也可以叫做C#如何直接调用非托管代码,通常有2种方法:1. 直接调用从 DLL 导出的函数。2. 调用 COM 对象上的接口方法我主要讨论从dll中导出函数,基本步骤如下:1.使用 C# 关键字 static 和 extern 声明方法。2.将 DllImport 属性附加到该方法。DllImport 属性允许您指定包含该方
2015-05-08 19:30:24 690
转载 C# 文件正由另一进程使用,该进程无法访问该文件
C#中经常会使用到OpenFileDialog控件,而使用该控件时若没有将条件设置好,很容易出现以下提示:“文件正由另一进程使用,该进程无法访问该文件”。打开一个文件后,尝试重新打开一次该文件,或者打开该文件后想对该文件进行其他操作的时候,就容易出现这个错误提示,错误的原因很简单,解决方法也很简单。一般情况下造成该错误的原因是构造System.IO.FileStream时参数设
2015-04-28 10:31:21 10799
转载 销毁资源和释放内存
0. 什么是资源? .NET 框架中如何访问资源?所谓的资源就是程序中可利用的数据,譬如:字符串、图片和任何二进制数据,包括任何类型的文件。在面向对象的环境中,每一个类型都标识为某些程序所用的资源,要想使用这些资源,必须为相应的类型分配一定的内存空间。访问一个资源需要如下几个步骤:1)分配内存空间: 调用中间语言(IL)中的newobj指令(使用new操作符时,将产生newobj指
2015-04-28 09:12:07 1301
转载 c#如何在多线程中访问Form中控件的多种解决方案(收集)
我们在做winform应用的时候,大部分情况下都会碰到使用多线程控制界面上控件信息的问题。然而我们并不能用传统方法来做这个问题,下面我将详细的介 绍。 首先来看传统方法: public partial class Form1 : Form { public Form1() { Initial
2015-04-25 16:14:54 1975 1
转载 怎样运行地理处理工具 Geoprocessing & Geoprocessor & IGPProcess
In this topicHow to run a geoprocessing tool(这个地方在仔细整理下!!)Each geoprocessing tool has a fixed set of parameters that provide the tool with the information it needs for execution. Tools usual
2015-04-22 15:45:34 1056
转载 初学arcengine——ICommand 用法
ICommand 用法在ArcEngine类库中有大量的Command控件用来与地图控件进行操作和交互。比如有一系列的地图浏览控件、地图查询控件、图斑选取控件、编辑控件来与MapControl和PageLayoutControl进行交互。这些控件被包含在ESRI.ArcGIS.Controls.dll类库中,位于ESRI.ArcGIS.Controls命名空间下。这些内置的Comman
2015-04-22 15:44:11 4226 1
转载 arcgisengine中调用gp报错的问题
问题描述:在调用gp的时候,有些工具中如clip、转换工具、3d分析中的一些工具idw、classfiy等工具的时候添加了引用就不报错,但是在使用eliminate和smooth Polygon的时候就会提示错误如下图: 这种错误在排除了是输入参数错误之后,问题就是license权限不够。一般方法是添加arcinfo的license。解决方式:
2015-04-22 15:39:41 3214
转载 C#中WinForm程序退出方法技巧总结
这篇文章主要介绍了C#中WinForm程序退出方法,实例总结了技巧退出WinForm程序窗口的各种常用技巧,非常具有实用价值,需要的朋友可以参考下本文实例总结了C#中WinForm程序退出方法技巧。分享给大家供大家参考。具体分析如下:在c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Applicati
2015-03-13 09:52:52 804 1
转载 tiff显示、图片加载至tiff -----c#
Save images into a multi-page TIFF file or add images to an existing TIFF filebijulsoni, 27 Dec 2006 CPOL 4.85 (24 votes)
2015-03-12 10:12:06 2921
转载 tiff切片、合并、转换
A simple TIFF management classNotProfessional, 15 Dec 2004 4.67 (37 votes)Rate:vote 1vote 2vote 3vote 4vot
2015-03-12 10:06:33 5609
apache_drill_tutorial.pdf
2020-08-04
twitter ads_campaign management(实体关系图,ProcessOn软件打开)
2019-01-02
twitter ads_campaign management(2_full)
2018-10-30
Facebook Ads_Business Manager.xmind
2018-10-24
Head First 设计模式
2017-09-14
JSON生成类
2017-09-05
领域驱动设计:软件核心复杂性应对之道
2016-05-11
jakarta-ee-10-rabbitmq-messaging
2023-03-16
routing-messages-slides.pdf
2023-03-13
fan-out-exchanges-and-pubsub-slides
2023-03-13
direct-messages-slides
2023-03-11
introduction-to-rabbitmq
2023-03-11
introduction-to-messaging-slides
2023-03-10
Mongo Db Course - M001 MongoDB Basics
2022-06-19
M001: MongoDB Basics
2022-06-19
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人