兰保明

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2011年8月15日

摘要: 1 StringBuilder str = new StringBuilder(); 2 foreach (Control ctr in this.Page.Controls[3].Controls) 3 { 4 if (ctr.GetType().Name == "CheckBox") 5 { 6 CheckBox cb = (CheckBox)ctr; 7 if (cb.Checked) 8 str.Append(cb.Text + "<br/>"); 9 }10 }11 Literal1.Text = str.ToString(); 阅读全文
posted @ 2011-08-15 10:56 兰保明 阅读(124) 评论(0) 推荐(0) 编辑

摘要: SELECT top 1 * FROM [GpsNew].[dbo].[InstrumentType] where InstrumentID not in(select top 10 InstrumentID from InstrumentType) 阅读全文
posted @ 2011-08-15 10:02 兰保明 阅读(161) 评论(0) 推荐(0) 编辑

2011年8月10日

摘要: 基于对象的JavaScript语言 JavaScript语言是基于对象的(Object-Based),而不是面向对象的(object-oriented)。之所以说它是一门基于对象的语言,主要是因为它没有提供象抽象、继承、重载等有关面向对象语言的许多功能。而是把其它语言所创建的复杂对象统一起来,从而形成一个非常强大的对象系统。 虽然JavaScript语言是一门基于对象的,但它还是具有一些面向对象的基本特征。它可以根据需要创建自己的对象,从而进一步扩大JavaScript的应用范围,增强编写功能强大的Web文档。一、对象的基础知识1、对象的基本结构 JavaScript中的对象是由属性(prop 阅读全文
posted @ 2011-08-10 15:42 兰保明 阅读(153) 评论(0) 推荐(0) 编辑

摘要: 1 2 protected void ViewData_Click(object sender, EventArgs e) 3 { 4 string strConnection = "Provider=Microsoft.Jet.OleDb.4.0;Data Source="; 5 strConnection += Server.MapPath("mydata.mdb"); 6 OleDbConnection objConnection = new OleDbConnection(strConnection); 7 8 OleDbCommand objC 阅读全文
posted @ 2011-08-10 15:39 兰保明 阅读(209) 评论(0) 推荐(0) 编辑

摘要: 1 <%@ Page Language="C#" AutoEventWireup="true" CodeFile="JavaScript_Demo.aspx.cs" Inherits="JavaScript_Demo" %> 2 3 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd 阅读全文
posted @ 2011-08-10 15:36 兰保明 阅读(250) 评论(0) 推荐(0) 编辑

2011年8月9日

摘要: 1 #include "stdafx.h" 2 #include<algorithm> 3 #include <string> 4 #include <iostream> 5 using namespace std; 6 7 void print_arrange(string s) 8 { 9 sort(s.begin(),s.end());10 do 11 {12 cout<<s<<endl;13 } while (next_permutation(s.begin(),s.end()));14 }15 16 in 阅读全文
posted @ 2011-08-09 16:46 兰保明 阅读(199) 评论(0) 推荐(0) 编辑

2011年8月7日

摘要: 1 FeatureLayer fl = this.MyMap.Layers["MyFeatureLayer"] as ESRI.ArcGIS.Client.FeatureLayer;2 fl.Where = "POP1990>300000";3 fl.Renderer = Resources["MySimplePointRenderer"] as ESRI.ArcGIS.Client.SimpleRenderer; 阅读全文
posted @ 2011-08-07 15:47 兰保明 阅读(232) 评论(0) 推荐(0) 编辑

2011年8月5日

摘要: [WebMethod]public string ShowWebServicePhysicalPath(){ string strpath=System.Web.HttpContext.Current.Request.PhysicalPath;return strpath.Substring(0,strpath.LastIndexOf(@"\")); } 阅读全文
posted @ 2011-08-05 15:12 兰保明 阅读(1923) 评论(0) 推荐(0) 编辑

2011年8月3日

摘要: 1 void CMaxDifferent::OnNMClickListInfo(NMHDR *pNMHDR, LRESULT *pResult) 2 { 3 LPNMITEMACTIVATE pNMItemActivate = reinterpret_cast<LPNMITEMACTIVATE>(pNMHDR); 4 for(int i=0; i<m_ctrListInfo.GetItemCount(); i++) 5 { 6 if(m_ctrListInfo.GetItemState(i, LVIS_SELECTED) == LVIS_SELECTED ) 7 { 8 // 阅读全文
posted @ 2011-08-03 15:27 兰保明 阅读(759) 评论(0) 推荐(0) 编辑

摘要: 在地图上加两个图层如下:在Graphics 图层中添加一个多边行,但这时多边行没有设置Symbol属性Symbol="{StaticResource Symbol2}"<esri:Map Background="White"> <esri:ArcGISTiledMapServiceLayer ID="PhysicalTiledLayer" Url="http://services.arcgisonline.com/ArcGIS/rest/services/NGS_Topo_US_2D/MapServer&q 阅读全文
posted @ 2011-08-03 10:23 兰保明 阅读(512) 评论(0) 推荐(0) 编辑