摘要:
1 public IList GetModelList(string tablename, string where) 2 { 3 IList list = null; 4 DataTable dataTable = new DataTable(); 5 string ... 阅读全文
摘要:
1. DataTable dt = ds.Tables[0]; 2. DataTable dt = dao.FillTables("GetOptions_DKI_City_HCPName", sqlparmeter); ds.Tables.Add(dt); 阅读全文
摘要:
1 select nc.Class_Name,hn.home_news_id,hn.hemo_id,hn.hemo_Date, 2 hn.hemo_title,hemo_order from Hemo_News as hn 3 inner join NewsClass as nc on hn.hom 阅读全文
摘要:
1 string strSql = "select samlid,"; 2 strSql = strSql + "case bagclass "; 3 strSql = strSql + " when 1 then '小学' "; 4 strSql = strSql + " when 2 th... 阅读全文
摘要:
1 将sql想关的数据放到一个字段里 2 select r.Region_Name, 3 STUFF((select ','+cast(c2.city_name as varchar(10)) [text()] 4 from City c2 5 inner join Region as r2 on 阅读全文
摘要:
<script language="javascript"> function CheckAll(e,itemname) { var aa = document.getElementsByName(itemname); if (aa == undefined) { return; } for (va 阅读全文
摘要:
1 select cast(floor(rand()*20) as int)+1 as P_jsnews_id 2 3 select top 20 * from P_jsnews where P_jsnews_id>(select cast(floor(rand()*1000) as int)+1 as P_jsnews_id) 4 5 select top 20 * from ... 阅读全文
摘要:
// var strMess = '<%=Exchange() %>';// if (strMess == "兑换成功") {// $("#btnSure").show(); //显示提交按钮// }// else if (strMess.length > 0) {// alert(strMess) 阅读全文
摘要:
1 2 3 4 5 6 7 无标题页 8 17 18 146 147 148 149 150 151 152 153 154 155 156 157 dictionary 158 159 160 ... 阅读全文
摘要:
1 select CONVERT(varchar, getdate(), 120 ) 2 2004-09-12 11:06:08 3 4 select replace(replace(replace(CONVERT(varchar, getdate(), 120 ),'-',''),' ',''),':','') 5 20040912110608 6 7 select COUN... 阅读全文
摘要:
1 window.history.go(0) // window.history.go(-n) 表示返回上n级目录 2 window.location.reload() // window.parent.location.reload() 表示对父框架页面的刷新(注:加了parent的都是将js效果 阅读全文
摘要:
string[] abc=new string[8]{"1","2","3","4","1","2","3","4"};Response.Write(Array.IndexOf(abc,"3",1));//在abc数组中查找"3",从abc[1]开始找Response.Write(Array.Las 阅读全文
摘要:
我不是一个很有经验的程序员,在做项目的过程中会遇到很多的问题,在数据库中使用分页就是我做项目中遇到的一个问题.我从网上查了很多资料,有很多种方法.但我觉的创建临时数据表是最简单的方法,在我做Membership扩展时发现原来微软也是这样用的,你可一随便打开一个Membership的存储过程看看. 说 阅读全文
摘要:
数据库技术是信息资源管理最有效的手段。数据库设计是建立数据库及其应用系统的核心和基础,它要求对于指定的应用环境,构造出较优的数据库模式,建立起数据库应用系统,并使系统能有效地存储数据,满足用户的各种应用需求。1、设计数据库之前1)理解客户需求,询问用户如何看待未来需求变化。让客户解释其需求,而且随着 阅读全文
摘要:
获取一组radio被选中项的值:var item = $('input[name=items][checked]').val();获取select被选中项的文本var item = $("select[@name=items] option[@selected]").text(); 获取select 阅读全文
摘要:
1 获取select : 2 获取select 选中的 text : 3 4 1$("#ddlregtype").find("option:selected").text(); 5 获取select选中的 value: 6 7 1$("#ddlregtype ").val(); 8 获取select选中的索引: 9 10 1$("#ddlregtype ").ge... 阅读全文
摘要:
// 页面加载时 /// /// /// protected void Page_Load(object sender, EventArgs e) { //判断是否异步请求 if (Request.QueryString["ajax"] == "1") { ProcessRequ... 阅读全文
摘要:
1 2 3 // **************************************************************** // 4 // function Trim(value) 5 // -------------- 6 // 功能:删除两端空格(= Trim) 7 // 参数: value 要格式化的字符串 8 //... 阅读全文
摘要:
1 JS验证验证服务器控件 2 3 52 53 阅读全文
摘要:
1 private void button1_Click(object sender, EventArgs e) 2 { 3 this.textBox1.Text = "10005"; 4 } 5 //给字符串加. 6 private void Form1_Load(object sender, EventArgs e) 7 {... 阅读全文
摘要:
1 public override bool AccptChange() 2 { 3 //if (oldvalue == null || oldvalue.Count [] g = new Dictionary[4]; 8 g[0] = new Dictionary(); 9 g[1] = new... 阅读全文
摘要:
1 select 2 DevName as 设备名称, 3 count(flux) as 流量数据个数, 4 max(flux) as 流量最大值, 5 min(flux) as 流量最小值, 6 avg(flux) as 流量平均值, 7 count(Flux_AV) as 流速数据个数, 8 m 阅读全文
摘要:
方法一 在DOS提示符下,c:\>isql -U sa -P (此处输入SA密码) 注 大小写敏感 回车后会出现"1>"提示符,表明已成功,此时可在DOS下做任何SQL语句操作 1>use northwind //要操作的数据库的名称 2>go 1>select * from orders //or 阅读全文
摘要:
1 c# 分批处理数据录入 2 3 //using System.Text; 4 5 //using System.Data; 6 7 //using System.Data.SqlClient; 8 9 //using System; 10 11 //namespace InsertEfficie 阅读全文
摘要:
虚拟机使用的是VMware Workstation ,并且首次在虚拟机体验64 位系统。在新建好虚拟机,运行时候就出现了VMware Workstation 的提醒:此主机支持 Intel VT-x,但 Intel VT-x 处于禁用状态。如图: 提示信息: 已将该虚拟机配置为使用 64 位客户机操 阅读全文