会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
大勇在线
博客园
首页
新随笔
联系
订阅
管理
2009年9月13日
在webservice中传递Hashtable
摘要: webservice中不支持hashtable的数据类型,那么如何在webservice中传递hashtable呢?我们可以通过将hashtable转化为webservice中支持的数组的类型来进行传递,在调用的时候再转换成hashtable就可以了。[WebMethod] public DictionaryEntry[] SetValue() { Hashtable sl = new Hasht...
阅读全文
posted @ 2009-09-13 19:12 大勇在线
阅读(1068)
评论(0)
推荐(0)
编辑
2009年9月11日
向一个7*7的二维数组中插入不重复的1-49的数字
摘要: public static void SetValue() { //定义一个7*7的二维数组,定义一个随机函数用来产生随机数,定义一个ArrayList用来记录产生的随机数 int[,] myArray = new int[7,7]; Random rd = new Random(); ArrayList myList = new ArrayList(); for (int i = 0; i &l...
阅读全文
posted @ 2009-09-11 22:18 大勇在线
阅读(465)
评论(0)
推荐(0)
编辑
2009年9月7日
遍历页面上所有TextBox控件并给它赋值为TextBox
摘要: protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindDataGrid(); IterateThroughChildren(this); } } //DataGrid里面放置TextBox控件 private void BindDataGrid() { ArrayList al = new Ar...
阅读全文
posted @ 2009-09-07 16:24 大勇在线
阅读(520)
评论(0)
推荐(0)
编辑
2009年9月3日
如何检查一个DataSet中是否为空?
摘要: #region //检查返回的结果集(DataSet)中是否有数据 private bool CheckEOF(DataSet ds) { bool flag1; if (ds == null) { flag1 = false; } else { if (ds.Tables.Count <= 0) { flag1 = false; } else { if (ds.Tables[0].Rows...
阅读全文
posted @ 2009-09-03 22:14 大勇在线
阅读(422)
评论(0)
推荐(0)
编辑
公告