x

开发者

c# .net

导航

2016年6月15日 #

C# 中的委托和事件

摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 5 namespace Delegate 6 { 7 // 热水器 8 public class Heater 9 { 10 private int 阅读全文

posted @ 2016-06-15 15:48 开发模式 阅读(242) 评论(0) 推荐(0) 编辑

2013年5月14日 #

Dictionary 分组

摘要: 1 ///反射数组按照要求排列 2 static void Main(string[] args) 3 { 4 Dictionary<string, int> myDictionary = SetKeyValue(); 5 int directorValue = myDictionary["公司1"]; 6 int directorValue4 = myDictionary["公司4"]; 7 int directorValue5 =... 阅读全文

posted @ 2013-05-14 15:08 开发模式 阅读(497) 评论(0) 推荐(0) 编辑

2013年5月10日 #

数组排序将111001000011排序到数组中list[0]=1,list[1]=1..........

摘要: /// <summary> /// 数组排序将111001000011排序到数组中list[0]=1,list[1]=1.......... /// </summary> /// <param name="str"></param> /// <returns></returns> public static string[] GetList(string str) { List<string> strList = new List<string>(); ... 阅读全文

posted @ 2013-05-10 09:12 开发模式 阅读(192) 评论(0) 推荐(0) 编辑

2012年8月12日 #

//判断CheckBoxList1选中项

摘要: //判断选中项 /* ​int count = 0; foreach (ListItem item in this.CheckBoxList1.Items) { if (item.Selected) { count++; } } if (count == 0) { Common.MessageBox.Show(this.Page, "必须选择一项变电站"); return; } else { sssss } */ 阅读全文

posted @ 2012-08-12 09:36 开发模式 阅读(1066) 评论(0) 推荐(0) 编辑

2012年5月31日 #

sql 高级查询及其应用

摘要: 高级查询在数据库中用得是最频繁的,也是应用最广泛的。 Ø 基本常用查询 --selectselect * from student;--all 查询所有select all sex from student;--distinct 过滤重复select distinct sex from student;--count 统计select count(*) from student;select count(sex) from student;select count(distinct sex) from student;--top 取前N条记录select top 3 * from s 阅读全文

posted @ 2012-05-31 22:11 开发模式 阅读(362) 评论(0) 推荐(0) 编辑

2012年4月23日 #

jquery判断checkbox(复选框)是否被选中

摘要: 11:判断radio23代码如下:4varselected=$('input[name=selectid:checked]').val();//若未被选中则val()=null5if(selected==null){6alert("未选中!");7}else{8alert("选中!");9}102:判断checkbox1112代码如下:13varn=$("input:checked").length;14if(n==0){15alert("未选中!");16}else{17alert("选 阅读全文

posted @ 2012-04-23 08:43 开发模式 阅读(380) 评论(0) 推荐(0) 编辑

2012年4月22日 #

jQuery下拉菜单

摘要: 1<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">2302<htmlxmlns="http://www.w3.org/1999/xhtml">4503<head>6704<metahttp-equiv="Content-Type"content="text/html;charset=gb 阅读全文

posted @ 2012-04-22 18:24 开发模式 阅读(345) 评论(0) 推荐(0) 编辑

input checkbox 全选

摘要: 1<!DOCTYPEHtml>2302<html>4503<head>6704<scripttype="text/javascript"src="http://code.jquery.com/jquery-1.4.4.min.js"></script>8905<scripttype="text/javascript">101106functionselectAll(checkbox){121307$('input[type=checkbox]'). 阅读全文

posted @ 2012-04-22 18:05 开发模式 阅读(7864) 评论(0) 推荐(0) 编辑

jquery ajax c#检查输入同名

摘要: 1<script type ="text/javascript" src ="jquery.js"></script>2302<script type="text/javascript">4503function checkCorpID()//检测客户编号是否可用6704{8905if($.trim($("#txtF_CORPID")[0].value)=="")//txtF_CORPID是客户编号输入框101106{121307alert("请输入 阅读全文

posted @ 2012-04-22 18:01 开发模式 阅读(376) 评论(0) 推荐(0) 编辑

JQuery中ajax方法访问web服务

摘要: 1$.ajax({2302type:"POST",4503//注明返回Json6704contentType:"application/json;utf-8",8905//CollegeDepartWebServices.asmxweb服务名/GetCollegeDepart方法名101106url:"CollegeDepartWebServices.asmx/GetCollegeDepart",121307//strDepartId参数名称collegeId参数值141508data:"{strDepartId:" 阅读全文

posted @ 2012-04-22 17:47 开发模式 阅读(384) 评论(0) 推荐(0) 编辑

2012年4月21日 #

net页面怎么调用WEB服务

摘要: 1一、WebService在cs后台程序中的调用2A、通过命名空间和类名直接调用34示例:56WebServicews=newWebService();78strings=ws.HelloWorld();910B、通过添加WEB引用的方式调用,首先添加WEB引用,通过URL指向WEBSERVICE,1112指定WEB引用名,假设为KK;1314示例:1516kk.WebServicen=newkk.WebService();1718stringss=n.HelloWorld();1920二、WebService在前台页面的JS调用方法21221、首先通过下面的方法把Webservice在前台引 阅读全文

posted @ 2012-04-21 15:35 开发模式 阅读(1728) 评论(0) 推荐(0) 编辑

2010年7月23日 #

中国开源社区

摘要: http://www.oschina.net/ 阅读全文

posted @ 2010-07-23 11:42 开发模式 阅读(145) 评论(0) 推荐(0) 编辑

2010年6月24日 #

JQuery不刷新客户端验证

摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--1functionIsCheckBox()2{3varcheckbox1=document.getElementById("CheckBox1");4varcheckbox2=document.get... 阅读全文

posted @ 2010-06-24 13:42 开发模式 阅读(382) 评论(0) 推荐(0) 编辑

2010年6月22日 #

C#二维数组升/降序排列

摘要: ddd 阅读全文

posted @ 2010-06-22 10:26 开发模式 阅读(1786) 评论(1) 推荐(0) 编辑

2008年11月25日 #

C# 正则表达验证类

摘要: Code Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1 using System; 2 using System.Collections; 3 using System.Text.RegularExpressions; ... 阅读全文

posted @ 2008-11-25 11:05 开发模式 阅读(686) 评论(0) 推荐(0) 编辑

2008年8月28日 #

c#常用

摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--> 1using System.Data; 2using System.Data.SqlClient; 3using System.Configuration; 4using System.W... 阅读全文

posted @ 2008-08-28 10:18 开发模式 阅读(286) 评论(0) 推荐(0) 编辑

x