zoukankan
html css js c++ java
C# split用法
1
string
[] sss
=
txtQueryVal.Text.ToString().Split(
new
char
[]
{
'
-
'
}
);
2
3
string
year
=
sss[
0
].ToString();
4
string
month
=
sss[
1
].ToString();
5
string
day
=
sss[
2
].ToString();
6
7
string
selsql4
=
"
select * from OA_Worklog where Datepart(year,OA_Worklog_Day)='
"
+
year
+
"
'and Datepart(month,OA_W orklog_Day)='
"
+
month
+
"
'and Datepart(day,OA_Worklog_Day)='
"
+
day
+
"
'
"
;
8
SqlDataAdapter sqlCom4
=
new
SqlDataAdapter(selsql4,sqlCon);
9
DataSet ds
=
new
DataSet();
10
sqlCom4.Fill(ds,
"
OA_Worklog
"
);
11
DGrid_QueryResult.DataSource
=
ds.Tables[
"
OA_Worklog
"
].DefaultView;
12
DGrid_QueryResult.DataKeyField
=
"
OA_Worklog_Id
"
;
13
DGrid_QueryResult.DataBind();
查看全文
相关阅读:
总结一下HtmlAgilityPack
sql server中获得刚刚插入的记录的主键ID
关于存储过程的一点总结
asp.net 中System.Web.UI.Page子类的成员变量的生存周期
sql server存储过程模板
第三方库HtmlAgilityPack的一个Bug
如何在存储过程内部调用另一个存储过程 EXEC
C#中的哈希表和字典的区别
Android Intent的几种用法全面总结
个人练习:ListView绑定数据和显示的几种方式
原文地址:https://www.cnblogs.com/shf/p/343338.html
最新文章
LaunchAndWait
内存映射
WriteComponent,ReadComponent
Format,FormatDateTime,FormatFloat用法
Custom ShowMessage,MessageDlg
DBGrid操作
遍历窗体中的控件
EnumWindows
Monitor Scktsrvr
Ext FormPanel submit 与Ext.Ajax
热门文章
Ubuntu 安装配置 RoR环境
3D游戏从头编之D3D(1)
rvm学习笔记
Extjs extjs datefield日期格式
Rails插件:CanCan权限验证插件学习总结
EXT 中jsonreader的配置解释
Rails 3中的Active Record的查询变化
Ubuntu php 环境快速配置
构造DataTable
asp.net 使用Master模板页需要注意
Copyright © 2011-2022 走看看