2010年3月19日
摘要:
用法:private void Page_Load(object sender, System.EventArgs e){// 在此处放置用户代码以初始化页面 Overview oc = new Overview(MapControl1,MapControl2); if(!IsPostBack) { }}/*作者:xiexiaokui* 时间:2005-10-18* 功能:asp.net鹰眼*/u...
阅读全文
posted @ 2010-03-19 16:42
carekee
阅读(400)
推荐(0)
摘要:
Catalog cata = MapInfo.Engine.Session.Current.Catalog; Table t = cata.GetTable("World"); Feature f = cata.SearchForFeature(t, MapInfo.Data.SearchInfoFactory.SearchWhere("Country='Japan'")); DPoint dp ...
阅读全文
posted @ 2010-03-19 16:41
carekee
阅读(237)
推荐(0)
摘要:
//用于desktop部署private void btnInitializeObjects_Click(object sender, System.EventArgs e){Catalog Cat = MapInfo.Engine.Session.Current.Catalog;//创建临时层TableInfoMemTable tblInfoTemp = new TableInfoMemTabl...
阅读全文
posted @ 2010-03-19 16:40
carekee
阅读(501)
推荐(0)
摘要:
mapControl1.Map.Zoom = new MapInfo.Geometry.Distance(mapControl1.Map.Zoom.value,MapInfo.Geometry.DistanceUnit.Kilometer);也可以分开写成如下格式:MapInfo.Geometry.Distance d = new MapInfo.Geometry.Distance(1000, D...
阅读全文
posted @ 2010-03-19 16:37
carekee
阅读(403)
推荐(0)
摘要:
如何为mapControl中的一个地图表增加主题?为SHENGQU这个面样式表来增加主题。// Listen to some map eventsmapControl1.Resize += new EventHandler(mapControl1_Resize);//在此事件中处理当mapControl改变大小时来重新定位主题表的位置。// Create a ranged theme on the...
阅读全文
posted @ 2010-03-19 16:36
carekee
阅读(393)
推荐(0)
摘要:
private void button1_Click(object sender, System.EventArgs e){Session.Current.Catalog.CloseAll();Table USATab = USATab = Session.Current.Catalog.OpenTable(@"c:\program files\mapinfo\mapxtreme\6.0\samp...
阅读全文
posted @ 2010-03-19 16:35
carekee
阅读(384)
推荐(0)
2010年3月16日
摘要:
一、 CStdioFile二、 FILE* f = fopen("file name", "mode"); char buff[size]; fread(buff, size, 1, f); fclose(f);三、 //用MFC读文件 CFile file("yourfile.txt",CFile::modeRead); char *pBuf; int iLen=file.Ge...
阅读全文
posted @ 2010-03-16 15:58
carekee
阅读(26357)
推荐(0)
2010年3月4日
摘要:
基本介绍:showModalDialog() (IE 4+ 支持)showModelessDialog() (IE 5+ 支持)window.showModalDialog()方法用来创建一个显示HTML内容的模态对话框。window.showModelessDialog()方法用来创建一个显示HTML内容的非模态对话框。使用方法:vReturnValue = window.showModalDi...
阅读全文
posted @ 2010-03-04 15:43
carekee
阅读(1592)
推荐(0)
摘要:
var myDate = new Date();myDate.getYear(); //获取当前年份(2位)myDate.getFullYear(); //获取完整的年份(4位,1970-????)myDate.getMonth(); //获取当前月份(0-11,0代表1月)myDate.getDate(); //获取当前日(1-31)myDate.getDay(); //获取当前星期X(0-6,...
阅读全文
posted @ 2010-03-04 10:19
carekee
阅读(1561333)
推荐(80)
摘要:
Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached. 问题描述超时时间已到。超...
阅读全文
posted @ 2010-03-04 10:09
carekee
阅读(535)
推荐(0)
摘要:
System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max p...
阅读全文
posted @ 2010-03-04 10:04
carekee
阅读(11673)
推荐(1)
2010年2月25日
摘要:
public class Gps_Operation { public Catalog cat; public MapControlModel model; public MapInfo.Mapping.Map map; public MapInfo.Data.Table GPSCAR ; //小车表 public MapInfo.Data.Table ORBIT; //轨迹表 public st...
阅读全文
posted @ 2010-02-25 17:57
carekee
阅读(439)
推荐(0)
摘要:
操作实体类:public class map_operation { public MapControlModel model; public MapInfo.Mapping.Map map; public Catalog Cat; public MapInfo.Data.Table tblTemp; public map_operation() { model = MapControlModel...
阅读全文
posted @ 2010-02-25 17:56
carekee
阅读(2121)
推荐(0)
2010年2月23日
摘要:
<html><head><meta http-equiv="Content-Type" content="text/html; charset=gb2312" /><title>无标题文档</title></head><script>document.write("<div align='center' id...
阅读全文
posted @ 2010-02-23 16:55
carekee
阅读(2244)
推荐(0)
摘要:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><html><head><meta http-equiv="expires" content="0"><meta http-equiv="content-type" content="text/html; charset...
阅读全文
posted @ 2010-02-23 15:04
carekee
阅读(1748)
推荐(0)
摘要:
序:在 www.sitepoint.com 上看了 Simon 的一篇 BLOG ,引导我去了一个很棒的 Web 开发站点 http://www.walterzorn.com/ ,并在那里获得了一个仅用 DHTML 和 Javscript 技术开发的一个高性能的矢量图形库 wz_jsgraphics.js (感谢 Walter Zorn 开发了这个图形库),使用它就可以在你的网页上画出漂亮的矢量图...
阅读全文
posted @ 2010-02-23 14:42
carekee
阅读(1019)
推荐(0)
摘要:
var jg_ihtm, jg_ie, jg_fast, jg_dom, jg_moz,jg_n4 = (document.layers && typeof document.classes != "undefined");function chkDHTM(x, i){x = document.body || null;jg_ie = x && typeof x.i...
阅读全文
posted @ 2010-02-23 13:14
carekee
阅读(605)
推荐(0)
摘要:
<script language="javascript"> var bClosing = true; function document.onclick() { var e = event.srcElement; if (e.tagName == "A" || (e.tagName == "INPUT" && e.type == "submit")) bClosin...
阅读全文
posted @ 2010-02-23 13:03
carekee
阅读(378)
推荐(0)
2010年2月10日
摘要:
我们在开发当中有时要求同一个用户在同一时间只能登录一次,也就是如果一个用户已经登录了,在退出之前如果再次登录的话需要提示不能登录。常见的处理方法是,在用户登录时,判断此用户是否已经在Application中存在,如果存在就提示,不存在的话就加到Application中(Application是所有Session共有的,整个web应用程序唯一的一个对象): string strUserId = ...
阅读全文
posted @ 2010-02-10 16:31
carekee
阅读(1468)
推荐(1)
摘要:
要防止同一用户同时登陆,首页应该记录在线用户的信息(这里与用户名为例),然后判断正在登陆的用户里面是否已存在。在这里使用一个cache存放已经登陆的用户名,但是还有一个问题就是要知道用户是什么时候离开系统的呢?这就要定期清除cache中的内容了,也就是设置一个cache的时间。这个时间可以跟用户的session值联系起来,刚好当用户session值失效的时候该用户在cache里面的信息也会被清空....
阅读全文
posted @ 2010-02-10 15:41
carekee
阅读(239)
推荐(0)