摘要: !、页面弹出对话框 在页面的pageload中加入: Button1.Attributes.Add("onclick", "return confirm('此案卷真的要回退吗?是/否');"); 2、从数据库中读入数据绑定到GridView中。 //从数据库中获取数据 public void getData() { ... 阅读全文
posted @ 2008-11-09 15:57 周文 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 要分开打印的内容用Table圈定,要分页的时候可用一个标签标记 阅读全文
posted @ 2008-11-09 15:33 周文 阅读(165) 评论(0) 推荐(0) 编辑
摘要: 添加Base Tool时 调用重载 onmousedown 函数(与地图交互的操作)的语句 ICommand pCommand; pCommand = new SimpleRenderer(); pCommand.OnCreate(m_mapControl.Object); m_mapControl.CurrentTool ... 阅读全文
posted @ 2008-11-09 15:29 周文 阅读(872) 评论(0) 推荐(0) 编辑
摘要: 首先添加一个新窗口frmAttribute,然后添加一个dataGridView控件dataGridView1。 然后在主窗口添加一个ContextMenuStrip控件,并添加子菜单“属性表”。 (1)首先,在新窗体对应的类中,我们创建 frmAttribute 类,即存储 属性信息 的对话框 private AxMapControl m_Mapctr; ... 阅读全文
posted @ 2008-11-09 15:26 周文 阅读(681) 评论(0) 推荐(0) 编辑
摘要: 自己添加响应函数即可,以下为响应函数中的代码: IMap pMap = pMapControl.Map; ISelectionEnvironment pSelEnvi = new SelectionEnvironmentClass(); IEnvelope pEnv = new EnvelopeClass(); pEnv = ... 阅读全文
posted @ 2008-11-09 15:23 周文 阅读(468) 评论(0) 推荐(0) 编辑
摘要: private void PrintAuto(IActiveView pActiveView) { IPaper pPaper = new Paper(); IPrinter pPrinter = new EmfPrinterClass(); System.Drawing.Printing.PrintDocument sysPrintDocumentDocument = n... 阅读全文
posted @ 2008-11-09 15:20 周文 阅读(659) 评论(0) 推荐(0) 编辑
摘要: /// /// 撒消编辑 /// /// IMap 地图对象 public void MapUndoEdit(IMap m_pMap) { IEngineEditProperties ep = new EngineEditorClass(); ILayer m_... 阅读全文
posted @ 2008-11-09 15:17 周文 阅读(757) 评论(0) 推荐(0) 编辑
摘要: 什么,你不懂Ajax,好吧,那么 在开始之前,我们先看下Ajax的定义, Ajax 是 Asynchronous JavaScript and XML(以及 DHTML 等)的缩写。Ajax由几种已有技术以新的强大方式组合:基于XHTML和CSS标准的表示;使用Document Object Model进行动态显示和交互;使用XMLHttpRequest与服务器进行异步通信;使用JavaS... 阅读全文
posted @ 2008-11-09 14:55 周文 阅读(1279) 评论(8) 推荐(0) 编辑
摘要: 一、不同页面之间的调用 例:default.apsx调用admin.aspx页面,代码: Response.Redirect("admin.aspx"); 二、传参数 1、单参数 调用页代码:Response.Redirect("admin.aspx?id="+name); 被调用页代码:name=Request.QueryString["id"]; 2、多参数 ... 阅读全文
posted @ 2008-11-09 13:29 周文 阅读(385) 评论(0) 推荐(0) 编辑