摘要:
1.InProc模式1.1配置方法!--Use this setting to turn Session pooling on/off (true/false)-- add key="MapInfo.Engine.Session.Pooled" value="false" /!--Use this setting to save Session state automatically (HttpSessionState) or manually (Manual)-- add key="MapInfo.Engine.Session.State" value="HttpSession 阅读全文
posted @ 2010-12-27 17:06
carekee
阅读(335)
评论(0)
推荐(0)
摘要:
情况描述:1.MAPXTREME 2005/2008 在IE8下出现“参数错误”问题 (command.js 出错),而火狐正常只需要在页面中加入如下HTTP meta-tag:只要IE8一读到这个标签,它就会自动启动IE7兼容模式,保证页面完整展示.还有一种方法是针对整个网站的,在IIS中加入如下描述符就可以有相同的效果,当然这么做范围更广.或者你还可以使用IIS admin tool来定义,更为简单. 2.Interaction.js 在IE中出现错误,而火狐却运行正常DragInteraction.prototype.OnUp=function (e){ if (this.drag) { 阅读全文
posted @ 2010-12-27 17:04
carekee
阅读(336)
评论(0)
推荐(0)
摘要:
1.首先在页面初始化事件Page_Load(object sender, EventArgs e)中注册编写的类protected void Page_Load(object sender, EventArgs e) { AjaxPro.Utility.RegisterTypeForAjax(typeof(fadataset)); //注册fadataset类 }2.fadataset类的实现using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;u 阅读全文
posted @ 2010-12-27 10:08
carekee
阅读(199)
评论(0)
推荐(0)
摘要:
在页面类中:public partial class spjk : System.Web.UI.Page{ public string yh; public string yhjb;protected void Page_Load(object sender, EventArgs e) { yh = Request.QueryString["yh"]; yhjb = Request.QueryString["yhjb"]; Session["yh"]=yh; //保存用户 }}JS中调用:function zxqx() //执行权限判断{ yhid='%=yh%'; //得到合法用户标识 阅读全文
posted @ 2010-12-27 10:07
carekee
阅读(800)
评论(0)
推荐(0)
摘要:
///日期格式:2009-12-30 13:50:12function date_compare(start,end){if(start=="" || end=="") { alert("日期值输入不能为空!,请重新输入。"); return 0; } var a = start.split(" ");var b = a[0].split("-");var c = a[1].split(":");var date_start= new Date(b[0],b[1],b[2],c[0],c[1],c[2]); //开始日期timestart=b[2]+"-"+b[1]+"-"+b[0]+" 阅读全文
posted @ 2010-12-27 10:06
carekee
阅读(2533)
评论(0)
推荐(0)
摘要:
引入:link type="text/css" href="Jquery/jquery-ui-1.7.2.custom.css" rel="stylesheet" /script type="text/javascript" src="Jquery/jquery-1[1].3.2.min.js"/script script type="text/javascript" src="Jquery/ui.core.js"/script script type="text/javascript" src="Jquery/ui.progressbar.js"/script 阅读全文
posted @ 2010-12-27 10:05
carekee
阅读(939)
评论(0)
推荐(0)
摘要:
js中的代码:function analysis_map_search_result(){var mapImage = document.getElementById("MapControl1_Image_Image"); var url = "MapController.ashx?Command=map_search&Width=" + mapImage.width +"&Height=" + mapImage.height + "&ExportFormat=" + mapImage.exportFormat+"&Ran=" + Math.random()+"&feature_name="+ 阅读全文
posted @ 2010-12-27 10:04
carekee
阅读(928)
评论(0)
推荐(0)
摘要:
以下代码位于AppStateManager.cs文件中:// Restore the state public override void RestoreState() { string mapAlias = ParamsDictionary[ActiveMapAliasKey] as string; Map map = GetMapObj(mapAlias); // If it was user's first time and the session was not dirty then save this default state to be applied later. // If 阅读全文
posted @ 2010-12-27 10:03
carekee
阅读(245)
评论(0)
推荐(0)
摘要:
//保存地图图片实体类public class Save_Map_Picture { private byte[] photo;//公用缓冲区 public string SourFilePath;//源图片文件路径 public string ObjFilePath;//目标图片路径 public int FileToStream(MemoryStream stream) //文件到流的转换 { photo = stream.ToArray(); stream.Close(); return 0; } public int StreamToFile() //流转换为图片文件 { byte[ 阅读全文
posted @ 2010-12-27 10:01
carekee
阅读(445)
评论(0)
推荐(0)
摘要:
DragInteraction.prototype.OnUp=function (e){if (this.drag) {this.element.style.position='relative'; this.element.style.left = 0; this.element.style.top = 0; this.element.style.clip = 'rect(' + 0 + ' ' + this.element.width + ' ' + this.element.height + ' ' + 0 +')'; this.PointsData.AddPoint(e.clientX 阅读全文
posted @ 2010-12-27 10:00
carekee
阅读(268)
评论(0)
推荐(0)
摘要:
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using System.Data.SqlClient;/// summary/// fadataset 的摘要说明/// /summary 阅读全文
posted @ 2010-12-27 09:58
carekee
阅读(233)
评论(0)
推荐(0)
摘要:
通过js操纵DOM很多情况下都是为了实现和当前页html元素的异步载入,我谈谈对Image对象的一些认识。看个例子:input type="button" name="" value="载入图片" onclick="addImg('tt.jpg')" /script type="text/javascript"!-- function addImg(isrc) { var Img = new Image(); Img.src = isrc; Img.onload = function () { document.body.appendChild(Img); } }//-- 阅读全文
posted @ 2010-12-27 09:56
carekee
阅读(11642)
评论(1)
推荐(2)
浙公网安备 33010602011771号